Ensure database drop/recreate is replicated before enabling profiling in safe_secondary_reads_drop_recreate.js

XMLWordPrintableJSON

    • Fully Compatible
    • ALL
    • v4.0
    • Sharding 2018-06-04
    • 25
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      In safe_secondary_reads_drop_recreate.js, we should ensure that the drop from the previous scenario is replicated before we enable profiling for the database on the secondaries. Otherwise, when the drop is replicated, the profile collection will be dropped. We can ensure the drop is replicated by giving the secondary votes, or by calling awaitReplication() before turning on profiling.

            Assignee:
            Matthew Saltz (Inactive)
            Reporter:
            Tess Avitabile (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: