Skip to content

Commit

Permalink
0001877: Process status can be stranded in non-ok or non-error status…
Browse files Browse the repository at this point in the history
… on pull if an io expection occurs in the uri handler
  • Loading branch information
chenson42 committed Aug 6, 2014
1 parent 7dbaac0 commit 3ec125c
Showing 1 changed file with 4 additions and 3 deletions.
Expand Up @@ -119,9 +119,10 @@ public void pull(String nodeId, String remoteHost, String remoteAddress,
if (processInfo.getStatus() != Status.ERROR) {
processInfo.setStatus(Status.OK);
}
} catch (RuntimeException ex) {
processInfo.setStatus(Status.ERROR);
throw ex;
} finally {
if (processInfo.getStatus() != Status.OK) {
processInfo.setStatus(Status.ERROR);
}
}
outgoingTransport.close();
}
Expand Down

0 comments on commit 3ec125c

Please sign in to comment.