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

Return more informative error message when updating shard key fails on commit

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.1.11
    • Affects Version/s: None
    • Component/s: Sharding
    • Labels:
      None
    • Fully Compatible
    • Sharding 2019-05-06

      When a write that updates a shard key is not part of a transaction, we start a transaction, run this write as part of the txn, and commit it. If the commit fails, the error it fails with may be confusing if returned to the user, i.e. NoSuchTransaction etc, because the user did not run the write as a transaction. We should return a more useful error to the user in this case.

            Assignee:
            janna.golden@mongodb.com Janna Golden
            Reporter:
            janna.golden@mongodb.com Janna Golden
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: