Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
cta
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Harbor Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
dCache
cta
Commits
cc74fa5d
Commit
cc74fa5d
authored
10 years ago
by
Giuseppe Lo Presti
Browse files
Options
Downloads
Patches
Plain Diff
Handle transferids uniformly in the moverhandler as xroot internal transfers now also have a UUID
parent
2b0d412d
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
castor/scheduler/diskmanager/moverhandler.py
+3
-3
3 additions, 3 deletions
castor/scheduler/diskmanager/moverhandler.py
movers/moveropenclose.h
+1
-1
1 addition, 1 deletion
movers/moveropenclose.h
with
4 additions
and
4 deletions
castor/scheduler/diskmanager/moverhandler.py
+
3
−
3
View file @
cc74fa5d
...
...
@@ -58,7 +58,7 @@ class MoverReqHandlerThread(threading.Thread):
where errorCode is non-0 in case the transfer is to be cancelled
tident has the format: username.clientPid:fd@clientHost
transferType is one of tape, user, d2duser, d2dinternal, d2ddraining, d2drebalance
transferId is the UUID of the transfer
or 0 for non-user transfers
transferId is the UUID of the transfer
- It synchronously waits for a single answer like
<rc>[ <error message>]
\n
either
"
0
"
for success
...
...
@@ -76,7 +76,7 @@ class MoverReqHandlerThread(threading.Thread):
# yes, look it up for this transferid
t
=
self
.
runningTransfers
.
get
(
transferid
)
if
errCode
!=
0
:
# this is a user transfer that has to be failed
# this is a user transfer that has to be failed
as we got an error from xroot
self
.
runningTransfers
.
remove
(
t
)
self
.
runningTransfers
.
failTransfer
(
t
.
scheduler
,
t
.
transfer
,
errCode
,
'
Error while opening the file
'
)
else
:
...
...
@@ -94,7 +94,7 @@ class MoverReqHandlerThread(threading.Thread):
nshost
=
nshost
.
split
(
'
.
'
)[
0
]
fileid
=
(
nshost
,
int
(
fid
))
mountPoint
=
physicalPath
.
rsplit
(
os
.
sep
,
2
)[
0
]
+
os
.
sep
tTransfer
=
TapeTransfer
(
t
ident
+
'
:
'
+
physicalPath
,
# this
is a unique identifier for a tape transfer
tTransfer
=
TapeTransfer
(
t
ransferid
,
# this
UUID has been generated by xroot
TapeTransferType
.
RECALL
if
isWriteFlag
else
TapeTransferType
.
MIGRATION
,
time
.
time
(),
clientHost
,
fileid
,
mountPoint
)
self
.
runningTransfers
.
addTapeTransfer
(
tTransfer
)
...
...
This diff is collapsed.
Click to expand it.
movers/moveropenclose.h
+
1
−
1
View file @
cc74fa5d
...
...
@@ -41,7 +41,7 @@ extern "C" {
* (tident, physicalPath, transferType, isWriteFlag, transferId)
* where tident has the format: username.clientPid:fd@clientHost
* and transferType is one of tape, user, d2duser, d2dinternal, d2ddraining, d2redbalance
* and transferId is the UUID of the transfer
, 0 for non-user transfers
* and transferId is the UUID of the transfer
* errorcode an error code to be passed in case of a failure; it may be filled
with a non-zero value when the operation fails
* errormsg a pointer to a buffer for the error message if the operation failed
...
...
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