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

IdempotencyTest::validate() should also verify consistency of collection/index options

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 3.5.9
    • None
    • Replication
    • None
    • Fully Compatible
    • TIG 2017-06-19, TIG 2017-07-10

    Description

      The IdempotencyTest::validate() function currently performs collection validation and computes a hash of the collection's contents for later verification. We should additional check that re-applying the operations via runOps() results in a collection with the same options as before and that any indexes on the collection have the same options as before. This can be viewed as the C++ analogue to some of the additional consistency checks for collection metadata performed in ReplSetTest.prototype.checkReplicatedDataHashes().

      The IdempotencyTest::validate() function should probably return a struct that contains a std::string for the collection's hash as well as a CollectionOptions struct and a std::vector<BSONObj> for the index specifications. See CollectionCatalogEntry::getCollectionOptions() and CollectionCatalogEntry::getIndexSpec() for how to retrieve this information from collection->getCatalogEntry().

      Attachments

        Activity

          People

            may.hoque@mongodb.com May Hoque
            max.hirschhorn@mongodb.com Max Hirschhorn
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: