Skip to content

Commit

Permalink
[NO ISSUE][HYR][CONTROL] Avoid halt in event of interrupted registration
Browse files Browse the repository at this point in the history
Change-Id: I3577c0aa5a8358027146f2ac342a627d813894ca
Reviewed-on: https://asterix-gerrit.ics.uci.edu/c/asterixdb/+/18268
Reviewed-by: Michael Blow <mblow@apache.org>
Reviewed-by: Murtadha Hubail <mhubail@apache.org>
Tested-by: Michael Blow <mblow@apache.org>
  • Loading branch information
mblow committed May 9, 2024
1 parent 7365617 commit f43328f
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,8 @@ public synchronized CcId registerNode(NodeRegistration nodeRegistration, int reg
InvokeUtil.runWithTimeout(() -> {
this.wait(REGISTRATION_RESPONSE_POLL_PERIOD); // NOSONAR while loop in timeout call
}, () -> !registrationPending, 1, TimeUnit.MINUTES);
} catch (InterruptedException e) {
throw e;
} catch (Exception e) {
registrationException = e;
}
Expand Down

0 comments on commit f43328f

Please sign in to comment.