Set scoped shard role during bulk write execution

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Fixed
    • Priority: Major - P3
    • 9.0.0-rc0, 8.3.3
    • Affects Version/s: None
    • Component/s: None
    • None
    • Query Execution
    • Fully Compatible
    • v8.3
    • 0
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      If we have a write on a sharderd and unsharded collection in the same database and we have a mismatched db version, the write should fail on the unsharded write, but because bulk_write.cpp eagerly sets shard role for all involved namespaces, it will fail even on the sharded write, that should not care about db version.

       

      This is more of less fine, but it misattributes the failure to the incorrect write index, causing a bug in bulk_write_exec.cpp

            Assignee:
            Ivan Fefer
            Reporter:
            Ivan Fefer
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: