Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dcache-bulk: deprecate "prestore" option and remove related container
Motivation: `prestore` was added as a bulk request option originally in order to allow immediate retrieval of target paths. When it was then discovered that lazy storing of the initial paths was not a workable idea, this option applied only to targets discovered via recursion. However, the rationale for storing the entire tree of targets before beginning the processing does not really exist. The lazy storage of discovered targets, and the deferring of directories in memory until they are handled, which is the behavior of the default container, does not pose problems for recovery, because the tree is rescanned in that case, and only the stored targets which have successfully completed or failed are skipped; hence, the entire directory list is reconstituted on restart for any requests that had not been completed before shutdown of the service. Moreover, time-to-completion is significantly increased (by at least an order of magnitude) because of the additional overhead involved in doing this on a sizeable tree of discovered targets. Modification: The option has been deprecated and all related code removed. The presence of the `prestore` attribute in the JSON for the request will simply be ignored (for backward compatibility). Result: The additional semantics, which complicate modifications (should they be desirable), of prestorage are no longer maintained. `I would suggest we backport this to 9.1, where the major database changes took place, but leaving it only for 9.2 is acceptable.` Target: master Request: 9.1 Patch: https://rb.dcache.org/r/14035 Acked-by: Tigran
- Loading branch information
Showing
12 changed files
with
51 additions
and
463 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.