[SERVER-43210] jstests/sharding/kill_sessions.js doesn't wait for operation to be killed. Created: 06/Sep/19 Updated: 29/Oct/23 Resolved: 24/Sep/19 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 3.6.17, 4.3.1, 4.2.3, 4.0.15 |
| Type: | Bug | Priority: | Minor - P4 |
| Reporter: | Lamont Nelson | Assignee: | Blake Oler |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | sharding-wfbf-day | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Backwards Compatibility: | Fully Compatible | ||||||||
| Operating System: | ALL | ||||||||
| Backport Requested: |
v4.2, v4.0, v3.6
|
||||||||
| Steps To Reproduce: | |||||||||
| Sprint: | Sharding 2019-10-07 | ||||||||
| Participants: | |||||||||
| Linked BF Score: | 11 | ||||||||
| Description |
|
The code that actually does the killing on mongod is here, which ultimately calls ServiceContext->killOperation and OperationContext->interrupt. It looks like this only marks the OpContext to be killed, but doesn't wait for the command to actually finish. The test is written in a way that assumes that the command is synchronous. Assert.soon in the test will be able to fix this if the command actually should be async. |
| Comments |
| Comment by Githook User [ 02/Jan/20 ] |
|
Author: {'name': 'Blake Oler', 'email': 'blake.oler@mongodb.com', 'username': 'BlakeIsBlake'}Message: (cherry picked from commit c4162d244b9a031b077cc3694f8585288e275ff6) |
| Comment by Githook User [ 02/Jan/20 ] |
|
Author: {'name': 'Blake Oler', 'email': 'blake.oler@mongodb.com', 'username': 'BlakeIsBlake'}Message: (cherry picked from commit c4162d244b9a031b077cc3694f8585288e275ff6) |
| Comment by Githook User [ 13/Dec/19 ] |
|
Author: {'name': 'Lamont Nelson', 'email': 'lamont.nelson@mongodb.com', 'username': 'lamontnelson'}Message: (cherry picked from commit c4162d244b9a031b077cc3694f8585288e275ff6) |
| Comment by Githook User [ 23/Sep/19 ] |
|
Author: {'username': 'BlakeIsBlake', 'email': 'blake.oler@mongodb.com', 'name': 'Blake Oler'}Message: |