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

invariant in IndexCatalogImpl::createIndexOnEmptyCollection() fails due to inaccurate fast count

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.4.0-rc8, 4.7.0
    • Component/s: Storage
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Backport Requested:
      v4.4
    • Sprint:
      Execution Team 2020-06-15
    • Linked BF Score:
      15

      Description

      The invariant in IndexCatalogImpl::createIndexOnEmptyCollection() relies on the fast count for the collection being accurate. This is not always the case, especially in rollback scenarios. A more reliable way to determine if the collection is empty is to check the record store using Collection::isEmpty().

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              benety.goh Benety Goh
              Reporter:
              benety.goh Benety Goh
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: