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

dbHash should return SnapshotUnavailable if _id index is not visible in the current snapshot

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 4.9.0
    • None
    • None
    • None
    • Fully Compatible
    • ALL
    • Execution Team 2020-10-05, Execution Team 2020-10-19
    • 21

    Description

      The test-only command 'emptycapped' drops and recreates all indexes. Because of this, it is possible for dbHash to pick a read timestamp where the new _id index is not visible yet. Instead of returning a 'no _id index' error, dbHash should return a SnapshotUnavailable error, which is already an expected and routine error code. 

      This problem can be fixed by having 'emptycapped' set the collection's minimumVisibleSnapshot.

      Attachments

        Activity

          People

            louis.williams@mongodb.com Louis Williams
            louis.williams@mongodb.com Louis Williams
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: