BulkWriteResult.getModifiedCount should throw if server version < 2.6

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Done
    • Priority: Major - P3
    • 2.12.0
    • Affects Version/s: None
    • Component/s: Write Operations
    • None
    • None
    • None
    • None
    • None
    • None

      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

              Assignee:
              Jeffrey Yemin
              Reporter:
              Jeffrey Yemin
              None
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: