[SERVER-48371] transactions_during_step_down.js must abort transaction in the shell Created: 21/May/20 Updated: 29/Oct/23 Resolved: 26/May/20 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Replication |
| Affects Version/s: | None |
| Fix Version/s: | 4.2.8, 4.4.0-rc7, 4.7.0 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Tess Avitabile (Inactive) | Assignee: | Tess Avitabile (Inactive) |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Backwards Compatibility: | Fully Compatible | ||||||||
| Operating System: | ALL | ||||||||
| Backport Requested: |
v4.4, v4.2
|
||||||||
| Sprint: | Repl 2020-06-01 | ||||||||
| Participants: | |||||||||
| Linked BF Score: | 12 | ||||||||
| Description |
|
In transactions_during_step_down.js, we start a transaction, which gets aborted by a stepdown. However, since we never abort the transaction in the shell, when the session goes out of scope and garbage collection runs, we run endSession(), which will run abortTransaction against the server. This can hang and lead to deadlock if we are in the process of stopping the ReplSetTest and have fsynclocked the server. |
| Comments |
| Comment by Githook User [ 26/May/20 ] |
|
Author: {'name': 'Tess Avitabile', 'email': 'tess.avitabile@mongodb.com', 'username': 'tessavitabile'}Message: (cherry picked from commit ec3fe1a2b7cbf6586b20373fdca1e60dd9e406d4) |
| Comment by Githook User [ 26/May/20 ] |
|
Author: {'name': 'Tess Avitabile', 'email': 'tess.avitabile@mongodb.com', 'username': 'tessavitabile'}Message: (cherry picked from commit ec3fe1a2b7cbf6586b20373fdca1e60dd9e406d4) |
| Comment by Githook User [ 21/May/20 ] |
|
Author: {'name': 'Tess Avitabile', 'email': 'tess.avitabile@mongodb.com', 'username': 'tessavitabile'}Message: |