We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7e67a4f commit 29d6f46Copy full SHA for 29d6f46
driver-core/src/main/com/mongodb/internal/operation/AsyncCommandBatchCursor.java
@@ -236,7 +236,7 @@ private static final class ResourceManager extends CursorResourceManager<AsyncCo
236
<R> AsyncCallbackSupplier<R> execute(final AsyncCallbackSupplier<R> callbackSupplier) {
237
return callback -> {
238
if (!tryStartOperation()) {
239
- callback.onResult(null, new IllegalStateException(MESSAGE_IF_CONCURRENT_OPERATION));
+ callback.onResult(null, new IllegalStateException(MESSAGE_IF_CLOSED_AS_CURSOR));
240
} else {
241
callbackSupplier.whenComplete(this::endOperation).get(callback);
242
}
0 commit comments