[SERVER-38740] Remove wait for drop to have pending X lock in abort_transaction_thread_does_not_block_on_locks.js Created: 21/Dec/18  Updated: 29/Oct/23  Resolved: 03/Jan/19

Status: Closed
Project: Core Server
Component/s: Replication
Affects Version/s: None
Fix Version/s: 4.0.6, 4.1.7

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:
Backports
Depends
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v4.0
Sprint: Repl 2019-01-14
Participants:
Linked BF Score: 3

 Description   

This test starts two transactions. It then starts a collection drop, which will block behind the transactions. It confirms the drop has a pending X lock by running find commands until one times out. Finally, it waits for the transactions to expire and the drop to succeed (transactionLifetimeLimitSeconds was reduced to 10).

However, depending on the timing of the test, it is possible for the find command not to run until the transactions are about to expire, in which case it can error with QueryPlanKilled when the collection is dropped.

We can just remove the wait for the drop to have a pending X lock. No future test operations rely on the test having a pending X lock. Its purpose is just to confirm that the drop is blocked behind the transactions. However, this can be inferred from the namespaces.



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

Author:

{'email': 'tess.avitabile@mongodb.com', 'name': 'Tess Avitabile', 'username': 'tessavitabile'}

Message: SERVER-38740 Remove wait for drop to have pending X lock in abort_transaction_thread_does_not_block_on_locks.js

(cherry picked from commit 71f49041edda00fb1ebf224d53a8bf61726f5ac4)
Branch: v4.0
https://github.com/mongodb/mongo/commit/83054ed75b67a040833c5f1855245ae65ff7a678

Comment by Githook User [ 03/Jan/19 ]

Author:

{'username': 'tessavitabile', 'email': 'tess.avitabile@mongodb.com', 'name': 'Tess Avitabile'}

Message: SERVER-38740 Remove wait for drop to have pending X lock in abort_transaction_thread_does_not_block_on_locks.js
Branch: master
https://github.com/mongodb/mongo/commit/71f49041edda00fb1ebf224d53a8bf61726f5ac4

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