[SERVER-41874] Never kill cursors in shell garbage collection in concurrency_simultaneous_replication Created: 21/Jun/19  Updated: 29/Oct/23  Resolved: 30/Jul/19

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

Type: Task Priority: Major - P3
Reporter: Siyuan Zhou Assignee: Siyuan Zhou
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
Backport Requested:
v4.2
Sprint: Repl 2019-07-01, Repl 2019-07-15, Repl 2019-07-29, Repl 2019-08-12
Participants:
Linked BF Score: 14

 Description   

We need to expose a knob to disable the killCursor behavior in concurrency test suites because killCursor can be triggered by garbage collection at any time, which may be blocked by strong global locks that are waiting behind running transactions. Those running transaction may be running in the same thread as the garbage collection, e.g. in the shell, so none of them can make progress. When the transaction times out, the problem will go away, but since we increased the timeout in concurrency_simultaneous_replication to very large, the test will hang.



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

Author:

{'username': 'visualzhou', 'email': 'siyuan.zhou@mongodb.com', 'name': 'Siyuan Zhou'}

Message: SERVER-41874 Disbale cursor finalize in concurrency_simultaneous_replication.

(cherry picked from commit 5b323c73844702101055667bc0e222a183fde8c2)
Branch: v4.2
https://github.com/mongodb/mongo/commit/3d31cb6e94b857d9a0c8907689e65aaacbb4023d

Comment by Githook User [ 23/Aug/19 ]

Author:

{'username': 'visualzhou', 'email': 'siyuan.zhou@mongodb.com', 'name': 'Siyuan Zhou'}

Message: SERVER-41874 Add shell option to skip cursor finalize.

(cherry picked from commit 7285a28d08db1d23947b8f128dbc898bb4e8348c)
Branch: v4.2
https://github.com/mongodb/mongo/commit/f4b3f47b1a095fbf99a5ef18e72085e18e631410

Comment by Githook User [ 30/Jul/19 ]

Author:

{'name': 'Siyuan Zhou', 'username': 'visualzhou', 'email': 'siyuan.zhou@mongodb.com'}

Message: SERVER-41874 Disbale cursor finalize in concurrency_simultaneous_replication.
Branch: master
https://github.com/mongodb/mongo/commit/5b323c73844702101055667bc0e222a183fde8c2

Comment by Githook User [ 30/Jul/19 ]

Author:

{'name': 'Siyuan Zhou', 'username': 'visualzhou', 'email': 'siyuan.zhou@mongodb.com'}

Message: SERVER-41874 Add shell option to skip cursor finalize.
Branch: master
https://github.com/mongodb/mongo/commit/7285a28d08db1d23947b8f128dbc898bb4e8348c

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