Skip to content

Commit 446312c

Browse files
committed
Remove an invalid assertions from RetryState.isLastAttempt
1 parent 8b1804d commit 446312c

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

driver-core/src/main/com/mongodb/internal/async/function/RetryState.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,6 @@ public boolean isFirstAttempt() {
360360
private boolean isLastAttempt(final Throwable attemptException) {
361361
boolean lastIteration = loopState.isLastIteration();
362362
boolean operationTimeout = retryUntilTimeoutThrowsException && attemptException instanceof MongoOperationTimeoutException;
363-
assertFalse(lastIteration && operationTimeout);
364363
return lastIteration || operationTimeout || attempt() == attempts - 1;
365364
}
366365

0 commit comments

Comments
 (0)