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

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

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 4.1.11
    • None
    • Sharding
    • None
    • Fully Compatible
    • Sharding 2019-05-06

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: