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

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • 4.1.9
    • Storage
    • Fully Compatible
    • ALL
    • Storage NYC 2019-03-11
    • 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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: