[JAVA-2682] Writes with multi=true are incorrectly made retryable in some cases Created: 29/Nov/17  Updated: 28/Oct/23  Resolved: 30/Nov/17

Status: Closed
Project: Java Driver
Component/s: Write Operations
Affects Version/s: None
Fix Version/s: 3.6.0

Type: Improvement Priority: Major - P3
Reporter: Robert Stam Assignee: Jeffrey Yemin
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

The following line is probably intended to track whether all requests are retryable:

https://github.com/mongodb/mongo-java-driver/blob/master/driver-core/src/main/com/mongodb/operation/BulkWriteBatch.java#L104

and should probably be:

writeRequestsAreRetryable = writeRequestsAreRetryable && isRetryable(writeRequest);

As currently written it is only tracking whether the last request is retryable.



 Comments   
Comment by Githook User [ 30/Nov/17 ]

Author:

{'name': 'Jeff Yemin', 'username': 'jyemin', 'email': 'jeff.yemin@10gen.com'}

Message: JAVA-2682: Don't retry writes unless all writes in the list are retryable
Branch: 3.6.x
https://github.com/mongodb/mongo-java-driver/commit/44d40c3a19fd4c0b9b006893546d28bf302415ed

Comment by Githook User [ 30/Nov/17 ]

Author:

{'name': 'Jeff Yemin', 'username': 'jyemin', 'email': 'jeff.yemin@10gen.com'}

Message: JAVA-2682: Don't retry writes unless all writes in the list are retryable
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/44d40c3a19fd4c0b9b006893546d28bf302415ed

Generated at Thu Feb 08 08:57:49 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.