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

Remove write concern "majority" overrides for change streams test suites

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor - P4
    • Resolution: Won't Fix
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Querying, Replication
    • Labels:
      None
    • Sprint:
      Repl 2018-12-17

      Description

      The change streams test suites all utilize the set_read_and_write_concerns.js override as a means to override write concern to "majority" on all commands run in their tests. This was presumably added originally to make sure that writes done in a test would be majority committed so as to ensure they would be visible in subsequent change stream queries (which only return majority committed data). Hopefully the reliance on "majority" write concern has been superseded by sufficient usage of assert.soon to wait for changes to appear in a stream. Getting rid of these overrides would be a nice cleanup and also make it more explicit when tests do and don't rely on majority write guarantees.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              william.schultz William Schultz (Inactive)
              Reporter:
              william.schultz William Schultz (Inactive)
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: