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 e0447a2 commit 3e32472Copy full SHA for 3e32472
src/main/java/com/mongodb/kafka/connect/source/MongoSourceTask.java
@@ -245,7 +245,7 @@ private MongoCursor<BsonDocument> tryCreateCursor(final MongoSourceConfig source
245
if (e.getErrorCode() == 260) {
246
invalidatedCursor = true;
247
return tryCreateCursor(sourceConfig, mongoClient, null);
248
- } else if (e.getErrorCode() == 40415 && e.getErrorMessage().contains("startAfter")) {
+ } else if ((e.getErrorCode() == 9 || e.getErrorCode() == 40415) && e.getErrorMessage().contains("startAfter")) {
249
supportsStartAfter = false;
250
return tryCreateCursor(sourceConfig, mongoClient, resumeToken);
251
}
0 commit comments