[SERVER-39967] Add requires_snapshot_read tag to apply_ops_DDL_operation_does_not_take_global_X.js Created: 05/Mar/19  Updated: 29/Oct/23  Resolved: 06/Mar/19

Status: Closed
Project: Core Server
Component/s: Storage
Affects Version/s: None
Fix Version/s: 4.1.9

Type: Bug Priority: Major - P3
Reporter: Xiangyu Yao (Inactive) Assignee: Xiangyu Yao (Inactive)
Resolution: Fixed Votes: 0
Labels: test-fix
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Storage NYC 2019-03-11
Participants:
Linked BF Score: 50

 Description   

This is only a test-fix.

apply_ops_DDL_operation_does_not_take_global_X.js makes sure the oplog application of all DDL operations will not take a Global X lock. It verifies that by hanging a read which takes a Global IS lock and then applying a bunch of DDL operations.

However, applying DDL operations will also take a PBWM lock in X mode. The read will not take PBWM lock when snapshot read functionality is enabled. Otherwise, the read will take PBWM lock in IS mode, which blocks the DDL operations.

Therefore, the test only works with storage engine with snapshot read support.



 Comments   
Comment by Githook User [ 06/Mar/19 ]

Author:

{'name': 'Xiangyu Yao', 'username': 'xy24', 'email': 'xiangyu.yao@mongodb.com'}

Message: SERVER-39967 Add requires_snapshot_read tag to apply_ops_DDL_operation_does_not_take_global_X.js
Branch: master
https://github.com/mongodb/mongo/commit/e2ed6a5b40ef30d683a94927024cab84a828b00f

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