Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-42745

Simplify StaleDbVersion handling on the batch write path on routers

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.3.1
    • Affects Version/s: None
    • Component/s: Sharding
    • Labels:
      None
    • Fully Compatible
    • Sharding 2019-10-21, Sharding 2019-11-04

      Currently the batch write path handles receiving StaleDbVersion errors with different versions, but it is never expected for a single round of sending requests to targeted shards to return write errors with StaleDbVersions with different versions.

      This is because (1) database version is only attached when targeting a single shard (the primary shard), and (2) the shard will stop processing the batch after encountering the first StaleDbVersion error and will copy the same StaleDbVersion error into the unprocessed writes.

      Simplifying the StaleDbVersion handling code on mongos reduces the test surface necessary to get full code coverage.

            Assignee:
            esha.maharishi@mongodb.com Esha Maharishi (Inactive)
            Reporter:
            janna.golden@mongodb.com Janna Golden
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: