Skip to content

Commit

Permalink
GG-23420 Properly handled exceptions in paralleled restore.
Browse files Browse the repository at this point in the history
  • Loading branch information
ibessonov committed Aug 29, 2019
1 parent 81a9b09 commit 8a72cee
Showing 1 changed file with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5319,11 +5319,16 @@ private void restorePartitionStates(

totalProcessed.addAndGet(processed);
}
catch (IgniteCheckedException e) {
catch (IgniteCheckedException | RuntimeException | Error e) {
U.error(log, "Failed to restore partition state for " +
"groupName=" + grp.name() + " groupId=" + grp.groupId(), e);

restoreStateError.compareAndSet(null, e);
restoreStateError.compareAndSet(
null,
e instanceof IgniteCheckedException
? ((IgniteCheckedException)e)
: new IgniteCheckedException(e)
);
}
});

Expand Down

0 comments on commit 8a72cee

Please sign in to comment.