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

BulkWriteResult.getModifiedCount should throw if server version < 2.6

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • 2.12.0
    • None
    • 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

        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: