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

CheckReplDBHash hook should fsync before doing await_repl

    XMLWordPrintableJSON

Details

    • Fully Compatible
    • ALL
    • TIG 11 (03/11/16)
    • 0

    Description

      CheckReplDBHash currently does does a w:<all_nodes> write to ensure all previous commands have replicated and that no commands are executed after running {{dbhash]}.

      But this does not guarantee that writes with w:0 close to the end of a test are treated correctly; they may still get inserted into the oplog after the CheckReplDBHash write.

      To fix this issue, it should be sufficient to do an fsync on the primary, given that the test fixture has exactly 2 nodes and no failover.

      Attachments

        Activity

          People

            robert.guo@mongodb.com Robert Guo (Inactive)
            robert.guo@mongodb.com Robert Guo (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: