Skip to content

DRIVERS-3542 Clarify that partial cursor results must be preserved in BulkWriteException on getMore error#1947

Open
GromNaN wants to merge 1 commit into
mongodb:masterfrom
GromNaN:DRIVERS-3542
Open

DRIVERS-3542 Clarify that partial cursor results must be preserved in BulkWriteException on getMore error#1947
GromNaN wants to merge 1 commit into
mongodb:masterfrom
GromNaN:DRIVERS-3542

Conversation

@GromNaN

@GromNaN GromNaN commented Jun 8, 2026

Copy link
Copy Markdown
Member

Clarifies the "Top-Level Errors" section of the client bulk write spec to explicitly state that individual results already retrieved from the results cursor before a getMore error must be preserved in BulkWriteException.partialResult.

The previous wording — "individual results and/or errors have already been observed" — was ambiguous: it could be read as covering only results from previously completed batches, not documents already read from the current (partially iterated) cursor. This ambiguity led to a bug in the Java driver where those partial cursor results were discarded.

This clarification aligns the spec with the existing behavior of the Go and C/C++ drivers, which already preserve partial cursor results correctly.

Jira: https://jira.mongodb.org/browse/DRIVERS-3542

@GromNaN GromNaN requested a review from a team as a code owner June 8, 2026 13:09
@GromNaN GromNaN requested a review from isabelatkinson June 8, 2026 13:09
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.

1 participant