[SERVER-35413] Catch exception from transaction operation and store error on Session Created: 05/Jun/18 Updated: 06/Dec/22 |
|
| Status: | Backlog |
| Project: | Core Server |
| Component/s: | Diagnostics, Replication |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Task | Priority: | Major - P3 |
| Reporter: | William Schultz (Inactive) | Assignee: | Backlog - Replication Team |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||
| Assigned Teams: |
Replication
|
||||||||||||
| Participants: | |||||||||||||
| Description |
|
If a transaction aborts due to a transaction operation throwing an exception, we want to save that error. Currently, when we run an operation inside a transaction, we will abort the transaction if an exception is thrown, but we won't save the error. We want to change this behavior so that we pass the error status thrown by the exception into Session::abortActiveTransaction. |