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

Add flag to dbHash to go in recordId order / include recordIds

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 8.0.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Storage Execution
    • Fully Compatible
    • Execution Team 2024-03-04, Execution Team 2024-03-18, Execution Team 2024-04-01

      We don't want to always use the recordId with dbHash. For example, if a customer has a recordIdsReplicated:false collection and then they upgrade to a repcordIdsReplicated:true collection, because dbHash includes the recordIds when calculating the hash in the latter case, the hash will be different, even if the documents on disk are exactly the same.

      This can be confusing for customers if they run dbHash and get value X, upgrade and then get value, they might think that something has gotten corrupted on disk.

      So we need to have a flag to make including the recordId opt-in. Likewise for SERVER-86692, the behavior of having dbHash include the natural order should be opt-in via this flag for the same reason. Otherwise someone who upgrades would see that the exact same capped collection was returning a different hash between versions.

            Assignee:
            daotang.yang@mongodb.com Daotang Yang
            Reporter:
            vishnu.kaushik@mongodb.com Vishnu Kaushik
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: