-
Type:
Task
-
Resolution: Unresolved
-
Priority:
Trivial - P5
-
None
-
Affects Version/s: None
-
Component/s: None
-
None
-
None
-
Java Drivers
-
None
-
None
-
None
-
None
-
None
-
None
The driver currently assigns a default value of 0 to nModified due to the server bug SERVER-113026, where the server failed to return nModified when no documents were modified. This workaround should be removed once the minimum supported server version includes the fix.
Current behavior:
The driver sets nModified = 0 by default to handle missing field responses from affected server versions.
Intended behavior:
When all supported server versions reliably return nModified, the driver should no longer provide a default value.
Acceptance criteria:
- Confirm that all supported server versions contain the SERVER-113026 fix.
- Remove the default nModified being 0 logic and comment marked with TODO-JAVA-6005.
- is blocked by
-
SERVER-113026 Set nModified for bulk write updateOne without shard key reply item
-
- Needs Scheduling
-
- related to
-
JAVA-5986 Support nModified being optional in bulk write response
-
- Closed
-