Skip to content

Commit

Permalink
CAMEL-20297 camel-hazelcast: do not swallow interrupted exceptions
Browse files Browse the repository at this point in the history
  • Loading branch information
orpiske committed Jan 11, 2024
1 parent 8623fa3 commit 558e5b3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ public void run() {
}
}
} catch (InterruptedException e) {
// ignore
Thread.currentThread().interrupt();
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ public void done(boolean asyncDone) {
if (LOG.isDebugEnabled()) {
LOG.debug("Hzlq Consumer Interrupted: {}", e, e);
}
Thread.currentThread().interrupt();
continue;
} catch (Exception e) {
// Rollback
Expand All @@ -145,7 +146,8 @@ public void done(boolean asyncDone) {
getExceptionHandler().handleException("Error processing exchange", exchange, e);
try {
Thread.sleep(endpoint.getConfiguration().getOnErrorDelay());
} catch (InterruptedException ignore) {
} catch (InterruptedException ie) {
Thread.currentThread().interrupt();
}
}
}
Expand Down

0 comments on commit 558e5b3

Please sign in to comment.