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

Fix race in lock_stats_suboperation_curop.js

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.1.5
    • Component/s: Storage
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Sprint:
      Storage NYC 2018-11-05
    • Linked BF Score:
      18

      Description

      This is only a test fix for lock_stats_suboperation_curop.js on mobile platform.

      lock_stats_suboperation_curop.js uses assert.soon and currentOp() to make sure index build has started and then checks the 'lockStats' section for 'timeAcquiringMicros'. However, there is a very small time window between the time currentOp() catches the index build and index build takes the lock. In this scenario, the test would find 'lockStats' section being empty.

      To fix this, assert.soon should wait until all the locks are held.

        Attachments

          Activity

            People

            Assignee:
            xiangyu.yao Xiangyu Yao (Inactive)
            Reporter:
            xiangyu.yao Xiangyu Yao (Inactive)
            Participants:
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: