Skip to content

Commit

Permalink
Merge pull request #2976 from hazendaz/master
Browse files Browse the repository at this point in the history
[ci] Handle wait condition and write log if it fails
  • Loading branch information
hazendaz authored Oct 17, 2023
2 parents 419ab4e + 6f4f791 commit 9e61f4f
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -494,7 +494,9 @@ private PooledConnection popConnection(String username, String password) throws
log.debug("Waiting as long as " + poolTimeToWait + " milliseconds for connection.");
}
long wt = System.currentTimeMillis();
condition.await(poolTimeToWait, TimeUnit.MILLISECONDS);
if (!condition.await(poolTimeToWait, TimeUnit.MILLISECONDS)) {
log.debug("Wait failed...");
}
state.accumulatedWaitTime += System.currentTimeMillis() - wt;
} catch (InterruptedException e) {
// set interrupt flag
Expand Down

0 comments on commit 9e61f4f

Please sign in to comment.