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.
Return more informative error message when updating shard key fails on commit
- Votes:
-
0 Vote for this issue
- Watchers:
-
1 Start watching this issue
- Created:
- Updated:
- Resolved: