Skip to content

Commit 4784781

Browse files
JAVA-5224 Make ReadConcernMajorityNotAvailableYet a retryable error
1 parent 6bd6a19 commit 4784781

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

driver-core/src/main/com/mongodb/internal/operation/ChangeStreamBatchCursorHelper.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
final class ChangeStreamBatchCursorHelper {
3636
@VisibleForTesting(otherwise = PRIVATE)
3737
static final List<Integer> RETRYABLE_SERVER_ERROR_CODES =
38-
asList(6, 7, 63, 89, 91, 133, 150, 189, 234, 262, 9001, 10107, 11600, 11602, 13388, 13435, 13436);
38+
asList(6, 7, 63, 89, 91, 133, 134, 150, 189, 234, 262, 9001, 10107, 11600, 11602, 13388, 13435, 13436);
3939
@VisibleForTesting(otherwise = PRIVATE)
4040
static final String RESUMABLE_CHANGE_STREAM_ERROR_LABEL = "ResumableChangeStreamError";
4141

driver-sync/src/test/functional/com/mongodb/client/unified/UnifiedTestModifications.java

-2
Original file line numberDiff line numberDiff line change
@@ -175,8 +175,6 @@ public static void applyCustomizations(final TestDef def) {
175175
.file("retryable-reads", "listDatabaseObjects-serverErrors")
176176
.file("retryable-reads", "listCollectionObjects")
177177
.file("retryable-reads", "listCollectionObjects-serverErrors");
178-
def.skipJira("https://jira.mongodb.org/browse/JAVA-5224")
179-
.test("retryable-reads", "ReadConcernMajorityNotAvailableYet is a retryable read", "Find succeeds on second attempt after ReadConcernMajorityNotAvailableYet");
180178

181179
// retryable-writes
182180

0 commit comments

Comments
 (0)