Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-39967

Add requires_snapshot_read tag to apply_ops_DDL_operation_does_not_take_global_X.js

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.1.9
    • Affects Version/s: None
    • Component/s: Storage
    • Labels:
    • Fully Compatible
    • ALL
    • Storage NYC 2019-03-11
    • 50

      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.

            Assignee:
            xiangyu.yao@mongodb.com Xiangyu Yao (Inactive)
            Reporter:
            xiangyu.yao@mongodb.com Xiangyu Yao (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: