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

CheckReplDBHash hook should fsync before doing await_repl

    XMLWordPrintable

    Details

    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Backport Completed:
    • Sprint:
      TIG 11 (03/11/16)
    • Linked BF Score:
      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

            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: