-
Type: Task
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: Sharding
-
Fully Compatible
-
v4.2
-
Sharding NYC 2022-04-04
-
62
-
2
The cancel_coordinate_txn_commit_with_tickets_exhausted.js test relies on the hangWithLockDuringBatchRemove failpoint to have delete commands run by the removeOperation threads exhaust all available WiredTiger write tickets to test the TransactionCoordinator doesn't require acquiring a WiredTiger write ticket to avoid the transaction. However, the ShardServerCatalogCacheLoader thread may be updating the config.cache.chunks.test.mycoll entries and get blocked on the hangWithLockDuringBatchRemove instead. The assert.soon() + $currentOp run by the transactionThread thread continues to wait before proceeding to the next step of the test and lead the multi-statement transaction to time out after its 20 second transactionLifetimeLimitSeconds.
Running the {_flushRoutingTableCacheCommands: "test.mycoll"} command after collection is sharded and before the hangWithLockDuringBatchRemove failpoint is enabled to synchronize with the ShardServerCatalogCacheLoader thread performing its deletes.