Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dm-docs
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
hammonds
dm-docs
Commits
a4419516
Commit
a4419516
authored
9 years ago
by
sveseli
Browse files
Options
Downloads
Patches
Plain Diff
remove debug statements
parent
e04799be
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/python/dm/common/processing/plugins/gridftpFileTransferPlugin.py
+0
-12
0 additions, 12 deletions
...dm/common/processing/plugins/gridftpFileTransferPlugin.py
with
0 additions
and
12 deletions
src/python/dm/common/processing/plugins/gridftpFileTransferPlugin.py
+
0
−
12
View file @
a4419516
...
@@ -47,24 +47,14 @@ class GridftpFileTransferPlugin(FileTransferPlugin):
...
@@ -47,24 +47,14 @@ class GridftpFileTransferPlugin(FileTransferPlugin):
# Original data directory may contain host/port
# Original data directory may contain host/port
(
scheme
,
host
,
port
,
replacementDirPath
)
=
FtpUtility
.
parseFtpUrl
(
dataDirectory
)
(
scheme
,
host
,
port
,
replacementDirPath
)
=
FtpUtility
.
parseFtpUrl
(
dataDirectory
)
ftpUtility
=
SftpUtility
(
storageHost
)
ftpUtility
=
SftpUtility
(
storageHost
)
self
.
logger
.
debug
(
"
SVDBG STORAGE DIR: %s
"
,
storageDirectory
)
self
.
logger
.
debug
(
"
SVDBG STORAGE HOST: %s
"
,
storageHost
)
storageFilePathsDict
=
ftpUtility
.
getFiles
(
storageDirectory
,
{},
replacementDirPath
)
storageFilePathsDict
=
ftpUtility
.
getFiles
(
storageDirectory
,
{},
replacementDirPath
)
self
.
logger
.
debug
(
"
SVDBG STORAGE PATHS: %s
"
,
storageFilePathsDict
)
self
.
logger
.
debug
(
"
SVDB ORIG PATHS: %s
"
,
filePathsDict
)
pluginFilePathsDict
=
{}
pluginFilePathsDict
=
{}
filePaths
=
filePathsDict
.
keys
()
filePaths
=
filePathsDict
.
keys
()
for
filePath
in
filePaths
:
for
filePath
in
filePaths
:
filePathDict
=
filePathsDict
.
get
(
filePath
)
filePathDict
=
filePathsDict
.
get
(
filePath
)
#experimentFilePath = os.path.relpath(filePath, dataDirectory)
#storageFilePath = os.path.join(storageDirectory, experimentFilePath)
#storageFilePathDict = storageFilePathsDict.get(storageFilePath)
storageFilePathDict
=
storageFilePathsDict
.
get
(
filePath
)
storageFilePathDict
=
storageFilePathsDict
.
get
(
filePath
)
self
.
logger
.
debug
(
"
SVDBG SRC: %s
"
,
filePathDict
)
self
.
logger
.
debug
(
"
SVDBG DEST: %s
"
,
storageFilePathDict
)
if
not
storageFilePathDict
:
if
not
storageFilePathDict
:
self
.
logger
.
debug
(
"
SVDBG STORAGE HAS NO SUCH FILE: %s
"
,
filePathDict
)
# remote directory does not have the file
# remote directory does not have the file
pluginFilePathsDict
[
filePath
]
=
filePathDict
pluginFilePathsDict
[
filePath
]
=
filePathDict
else
:
else
:
...
@@ -72,14 +62,12 @@ class GridftpFileTransferPlugin(FileTransferPlugin):
...
@@ -72,14 +62,12 @@ class GridftpFileTransferPlugin(FileTransferPlugin):
sfSize
=
storageFilePathDict
.
get
(
'
fileSize
'
)
sfSize
=
storageFilePathDict
.
get
(
'
fileSize
'
)
# check size
# check size
if
not
fSize
or
not
sfSize
or
fSize
!=
sfSize
:
if
not
fSize
or
not
sfSize
or
fSize
!=
sfSize
:
self
.
logger
.
debug
(
"
SVDBG SIZES DO NOT MATCH: %s
"
,
filePathDict
)
pluginFilePathsDict
[
filePath
]
=
filePathDict
pluginFilePathsDict
[
filePath
]
=
filePathDict
else
:
else
:
# sizes are the same, check modify time
# sizes are the same, check modify time
mTime
=
filePathDict
.
get
(
'
fileModificationTime
'
)
mTime
=
filePathDict
.
get
(
'
fileModificationTime
'
)
smTime
=
storageFilePathDict
.
get
(
'
fileModificationTime
'
)
smTime
=
storageFilePathDict
.
get
(
'
fileModificationTime
'
)
if
not
mTime
or
not
smTime
or
mTime
>
smTime
:
if
not
mTime
or
not
smTime
or
mTime
>
smTime
:
self
.
logger
.
debug
(
"
SVDBG TIMES DO NOT MATCH: %s
"
,
filePathDict
)
pluginFilePathsDict
[
filePath
]
=
filePathDict
pluginFilePathsDict
[
filePath
]
=
filePathDict
self
.
logger
.
debug
(
'
Number of original files: %s, number of plugin files: %s
'
,
len
(
filePathsDict
),
len
(
pluginFilePathsDict
))
self
.
logger
.
debug
(
'
Number of original files: %s, number of plugin files: %s
'
,
len
(
filePathsDict
),
len
(
pluginFilePathsDict
))
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment