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

BulkWriteResult.getModifiedCount should throw if server version < 2.6

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major - P3
    • Resolution: Done
    • None
    • 2.12.0
    • Write Operations

    Description

      BulkWriteResult.getModifiedCount should throw MongoInternalException if server version < 2.6 because those servers can not provide the value properly via getlasterror. To detect whether it will throw, clients can call BulkWriteResult.isModifiedCountAvailable. If it returns true, it's safe to call BulkWriteResult.getModifiedCount

      Attachments

        Issue Links

          Activity

            People

              jeff.yemin@mongodb.com Jeffrey Yemin
              jeff.yemin@mongodb.com Jeffrey Yemin
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: