[SERVER-40646] Return more informative error message when updating shard key fails on commit Created: 15/Apr/19 Updated: 29/Oct/23 Resolved: 01/May/19 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Sharding |
| Affects Version/s: | None |
| Fix Version/s: | 4.1.11 |
| Type: | Task | Priority: | Major - P3 |
| Reporter: | Janna Golden | Assignee: | Janna Golden |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Backwards Compatibility: | Fully Compatible |
| Sprint: | Sharding 2019-05-06 |
| Participants: |
| 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. |
| Comments |
| Comment by Githook User [ 01/May/19 ] |
|
Author: {'email': 'golden.janna@gmail.com', 'name': 'jannaerin', 'username': 'jannaerin'}Message: |