Skip to content

Conversation

@vbabanin
Copy link
Member

@vbabanin vbabanin commented Oct 1, 2025

@vbabanin vbabanin self-assigned this Oct 1, 2025
@vbabanin vbabanin requested a review from rozza October 17, 2025 22:42
@vbabanin vbabanin marked this pull request as ready for review October 17, 2025 22:43
@vbabanin vbabanin requested a review from a team as a code owner October 17, 2025 22:43
@vbabanin vbabanin marked this pull request as draft October 17, 2025 22:54
@vbabanin vbabanin removed the request for review from rozza October 17, 2025 22:54
# Conflicts:
#	driver-core/src/main/com/mongodb/internal/operation/ChangeStreamBatchCursor.java
#	driver-core/src/main/com/mongodb/internal/operation/SyncOperationHelper.java
#	driver-core/src/test/unit/com/mongodb/internal/operation/ChangeStreamBatchCursorTest.java
@vbabanin vbabanin requested a review from rozza November 15, 2025 02:32
@vbabanin vbabanin marked this pull request as ready for review November 15, 2025 02:32
Copy link
Member

@rozza rozza left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Checkstyle nits - will remove and re run the tests.

protected abstract MongoClient createMongoClient(MongoClientSettings mongoClientSettings);

@Test
public void shouldDoOneServerSelectionForResumeAttempt() {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member Author

@vbabanin vbabanin Dec 10, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, 10107 error code (MongoNotPrimaryException) that was returned from failPoint marked a primary as UNKNOWN, so it caused multiple server selections until the server monitor discovered the primary. I have changed to a different retryable error code - 9001.

All tests pass now.

@vbabanin vbabanin requested a review from rozza December 10, 2025 19:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants