Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,12 @@ public void waitForQueryCompletion(Duration timeout)

boolean finished = latch.await(timeout.toMillis(), MILLISECONDS);
if (!finished) {
throw new TimeoutException("Query did not complete in " + timeout);
synchronized (this) {
TimeoutException exception = new TimeoutException("Query did not complete in %s. Currently, queryCreatedEvent=%s queryCompletedEvent=%s queryCompleteLatch=%s"
.formatted(timeout, queryCreatedEvent, queryCompletedEvent, queryCompleteLatch));
failures.forEach(exception::addSuppressed);
throw exception;
}
}
}

Expand Down