[SERVER-42216] Ensure pin_getmore_cursor.js waits for server to finish killing cursor Created: 12/Jul/19  Updated: 29/Oct/23  Resolved: 19/Jul/19

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 4.0.13, 4.2.1, 4.3.1

Type: Bug Priority: Major - P3
Reporter: George Wangensteen Assignee: Sam Mercier
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Depends
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v4.2, v4.0
Sprint: Query 2019-07-29
Participants:
Linked BF Score: 17

 Description   

jstests/libs/pin_getmore_cursor.js attempts to ensure that a cursor has been killed by running another command to kill the same cursor and ensuring that the second command can't find the cursor. However, because this occurs directly after a fail point is turned off, there is a race condition in which the second kill command might be issued before the server is able, after moving on from the fail point, to kill the cursor. The test should wait for the server to execute the first kill cursor command before ensuring it worked. 



 Comments   
Comment by Githook User [ 22/Aug/19 ]

Author:

{'username': 'samontea', 'email': 'merciers.merciers@gmail.com', 'name': 'samontea'}

Message: SERVER-42216 Ensure pin_getmore_cursor.js waits for server to finish killing cursor
Branch: v4.0
https://github.com/mongodb/mongo/commit/c5901841c88650ce78e6f077317d623d1b262b0c

Comment by Githook User [ 22/Aug/19 ]

Author:

{'name': 'samontea', 'email': 'merciers.merciers@gmail.com', 'username': 'samontea'}

Message: SERVER-42216 Ensure pin_getmore_cursor.js waits for server to finish killing cursor

(cherry picked from commit 4ee069b7c2b6aa84fec4e1c73369723bee1cc7ef)
Branch: v4.2
https://github.com/mongodb/mongo/commit/acef0b65bf07e43f19e4daf9e86082a3065d7db6

Comment by Githook User [ 19/Jul/19 ]

Author:

{'name': 'samontea', 'username': 'samontea', 'email': 'merciers.merciers@gmail.com'}

Message: SERVER-42216 Ensure pin_getmore_cursor.js waits for server to finish killing cursor
Branch: master
https://github.com/mongodb/mongo/commit/4ee069b7c2b6aa84fec4e1c73369723bee1cc7ef

Generated at Thu Feb 08 04:59:54 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.