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

`IndexCatalogEntryImpl::_catalogIsReady` is unsafe to unconditionally call.

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.0.2, 4.1.2
    • Affects Version/s: None
    • Component/s: Storage
    • None
    • Fully Compatible
    • ALL
    • v4.0
    • Storage NYC 2018-07-30
    • 19

      The condition added here is to guard against WT snapshot isolation with read timestamp semantics where a read timestamp of T can sometimes not see committed updates [index build completions] at time < T if the WT transaction were opened before the update [index build] was committed.

      However, while it's possible the timing of events would show storage seeing an index as building, but not complete, it's also possible the storage engine doesn't see the index build having begun. In that circumstance, a call to `_catalogIsReady` is fatal.

            Assignee:
            dewal.gupta Dewal Gupta
            Reporter:
            daniel.gottlieb@mongodb.com Daniel Gottlieb (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: