Implement 'all' collection hash for extended validate

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Fixed
    • Priority: Major - P3
    • 8.3.0-rc0
    • Affects Version/s: None
    • Component/s: Validate
    • None
    • Replication
    • Fully Compatible
    • Repl 2025-09-15
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      This hash will be calculated by performing a natural order scan of the collection and calculating an MD5 hash of the document. The resulting MD5 hash will be combined into a 'total' hash by performing XOR against the existing 'total' hash, resulting in an order independent hash that should be consistent across nodes

      This ticket should include a basic jstest that covers the following scenarios

      1. Nodes with exact matching documents (same order) give the same output
      2. Nodes with different number of documents give different output
      3. Nodes that have one document with different content give different output
      4. Nodes that have the same document inserted in different orders give the same output

      Output needs to be added to ValidateResults object and the implementation of appendToResultObj

      This code needs to be added around here where we traverse the record store. Example code for using md5 hashing is here from dbhash

            Assignee:
            Vishnu Kaushik
            Reporter:
            Sean Zimmerman
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: