-
Type:
Task
-
Resolution: Unresolved
-
Priority:
Unknown
-
Affects Version/s: None
-
Component/s: None
-
None
-
None
-
Java Drivers
-
None
-
None
-
None
-
None
-
None
-
None
When the server responds to a bulk write command with errorsOnly: true, it may still return cursor elements for successful writes (see SERVER-113344).
Currently, the Java driver asserts that no elements are present, causing an AssertionError.
The driver should tolerate this case by ignoring any successful results in the cursor instead of failing.
Acceptance Criteria:
- Remove the assertion in the bulk write result parser when verboseResults(false) / errorsOnly: true.
- Log or silently ignore unexpected cursor entries instead of throwing.
- is related to
-
JAVA-6002 Restore assertion for verbose results
-
- Needs Triage
-
- related to
-
SERVER-113344 bulkWrite returns success items despite errorsOnly:true on write without shard key
-
- Needs Verification
-