Skip to content

Commit

Permalink
admin: Propagate NoRouteToCellException to pcells
Browse files Browse the repository at this point in the history
In contrast to most places in dCache, pcells distinguishes between a timeout
and a failure to send a message to a cell.

Target: trunk
Request: 2.12
Request: 2.11
Request: 2.10
Require-notes: no
Require-book: no
Acked-by: Tigran Mkrtchyan <tigran.mkrtchyan@desy.de>
Patch: https://rb.dcache.org/r/8014/
(cherry picked from commit b4aeea8)
  • Loading branch information
gbehrmann committed Mar 30, 2015
1 parent c975871 commit 6046451
Showing 1 changed file with 6 additions and 1 deletion.
Expand Up @@ -26,6 +26,7 @@
import dmg.cells.applets.login.DomainObjectFrame;
import dmg.cells.nucleus.CellEndpoint;
import dmg.cells.nucleus.CellPath;
import dmg.cells.nucleus.NoRouteToCellException;
import dmg.util.CommandException;

import org.dcache.cells.CellStub;
Expand Down Expand Up @@ -139,7 +140,11 @@ public void run()
} catch (IOException ignored) {
}
} catch (TimeoutCacheException e) {
result = null;
if (e.getCause() instanceof NoRouteToCellException) {
result = e.getCause();
} else {
result = null;
}
} catch (Exception ae) {
result = ae;
}
Expand Down

0 comments on commit 6046451

Please sign in to comment.