xrootd: implement prepare function - #8198
Open
DmitryLitvintsev wants to merge 1 commit into
Open
Conversation
Motivation: ----------- dCache XRootD never implemented the prepare XRootD protocol call. In the beginning it returned an OK w/o doing anything and recently was implemented to fail with "unsupported". Meanwhile some customers (like the ALICE experiment) have to rely on this function to actually stage files. Modification: ------------ Implemented the prepare function. Regular CUSTODIAL files are staged and pinned via a new pin manager stub, using a configurable pin lifetime (xrootd.pin.lifetime[.unit], default 12 hours). REPLICA and OUTPUT files, as well as non-regular files (directories, links), are ignored for efficiency. Evict/cancel requests release the pin via the same stub. Conflicting option combinations (e.g. stage together with evict/cancel) are rejected with an error. New configuration properties were added to configure the pin manager cell stub (xrootd.service.pinmanager[.timeout[.unit]]) and the pin lifetime. The xrootd4j library dependency was bumped to 4.6.3 to pick up the required Prepare protocol message support. Result: ------ Implemented ability to stage and release files via xrootd prepare call. Target: trunk Request: 12.x Issue: #8121 Require-book: no Require-notes: yes Patch: https://rb.dcache.org/r/14770/ Acked-by: Tigran
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation:
dCache XRootD never implemented the prepare XRootD protocol call. In the beginning it returned an OK w/o doing anything and recently was implemented to fail with "unsupported". Meanwhile some customers (like the ALICE experiment) have to rely on this function to actually stage files.
Modification:
Implemented the prepare function. Regular CUSTODIAL files are staged and pinned via a new pin manager stub, using a configurable pin lifetime (xrootd.pin.lifetime[.unit], default 12 hours). REPLICA and OUTPUT files, as well as non-regular files (directories, links), are ignored for efficiency. Evict/cancel requests release the pin via the same stub. Conflicting option combinations (e.g. stage together with evict/cancel) are rejected with an error.
New configuration properties were added to configure the pin manager cell stub (xrootd.service.pinmanager[.timeout[.unit]]) and the pin lifetime. The xrootd4j library dependency was bumped to 4.6.3 to pick up the required Prepare protocol message support.
Result:
Implemented ability to stage and release files via xrootd prepare call.
Target: trunk
Request: 12.x
Issue: #8121
Require-book: no
Require-notes: yes
Patch: https://rb.dcache.org/r/14770/
Acked-by: Tigran