Uploaded image for project: 'Java Driver'
  1. Java Driver
  2. JAVA-2682

Writes with multi=true are incorrectly made retryable in some cases

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 3.6.0
    • Affects Version/s: None
    • Component/s: Write Operations
    • None

      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.

            Assignee:
            jeff.yemin@mongodb.com Jeffrey Yemin
            Reporter:
            robert@mongodb.com Robert Stam
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: