Skip to content

Commit 0d79157

Browse files
DmitryLitvintsevmksahakyan
authored andcommitted
Bulk: PinManagerActivity do not set state of files that are pinned indefinitely to SKIPPED
Motivaton: ---------- Setting files having infinite pin to state SKIPPED seems to prevents them from being staged if pool goes down. Modification: ------------- Set state to COMPLETED if pin lifetime is infinite. Result: ------ As tested and reported by DESY, the staging of files that happen to be on offline pools works properly Target: trunk Request: 10.2 Request: 9.2 Patch: https://rb.dcache.org/r/14365/ Require-notes: yes Require-book: no
1 parent c7bd310 commit 0d79157

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

modules/dcache-bulk/src/main/java/org/dcache/services/bulk/activity/plugin/pin/PinManagerActivity.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -112,9 +112,6 @@ public void handleCompletion(BulkRequestTarget target, Future<Message> future) {
112112
reply = getUninterruptibly(future);
113113
if (reply.getReturnCode() != 0) {
114114
target.setErrorObject(reply.getErrorObject());
115-
} else if (reply instanceof PinManagerPinMessage
116-
&& ((PinManagerPinMessage) reply).getLifetime() == -1L) {
117-
target.setState(SKIPPED);
118115
} else {
119116
target.setState(State.COMPLETED);
120117
}

0 commit comments

Comments
 (0)