Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dcache-frontend: invalidate transfer when killed mover not found
Motivation: When a mover is killed/cancelled, the mover may already have finished and been removed from the pool's mover service. In this case, a CacheException is thrown and an error reply returned. For the purposes of the frontend, this error should simply be regarded as equivalent to having cancelled the mover, particularly in terms of the snapshot of transfers cached there. Hence, it should be temporarily invalidated, until the full set of transfers is refreshed. Modification: If the thrown CacheException is because of mover not found, invalidate the cache entry and return OK. A new error code, MOVER_NOT_FOUND, is introduced to CacheException. The code is used in the message reply and checked by the frontend. Result: The front end sees (temporarily) "CANCELED" as with a successful kill, instead of getting an error. NOTE: This introduces an incompatibility with the preceding pool version. Target: master Request: 4.2 Request: 4.1 Acked-by: Paul
- Loading branch information
Showing
4 changed files
with
15 additions
and
6 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
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