Skip to content

Commit

Permalink
Move the manipulation trigger for R0036 outside the synchronization t…
Browse files Browse the repository at this point in the history
…o avoid blocking notifications through long running RPCs
  • Loading branch information
ldeichmann committed Sep 8, 2023
1 parent 86706cb commit fcad3a7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -418,8 +418,8 @@ private void triggerReportAndIntentionallyFailReceivingIt(final ReportTestData t
LOG.info("Triggering a Report and intentionally causing a failure...");
triggerableReport.setReportReceived(false);
triggerableReport.setFailOnReceivingReport(true);
triggerableReport.trigger();
synchronized (triggerableReport.getSyncPoint()) {
triggerableReport.trigger();
final long timeout = System.nanoTime() + TIMEOUT_NANOS;
while (!triggerableReport.getReportReceived() && System.nanoTime() < timeout) {
try {
Expand Down

0 comments on commit fcad3a7

Please sign in to comment.