Unordered batch writes to a shard with version mismatch can trigger dassert at mongos

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Major - P3
    • 2.6.0-rc2
    • Affects Version/s: None
    • Component/s: Sharding
    • None
    • Fully Compatible
    • ALL
    • 0
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      This happens because the shard will continue to process the remainder of the batch even if it encountered a version mismatch. This in turn will generate a response with multiple stale errors. And when the mongos processes the response it will trigger a dassert that checks that only 1 shard can have a stale error.

              Assignee:
              Randolph Tan
              Reporter:
              Randolph Tan
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: