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

sharded_backup_restore tests should use retryable writes

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Storage
    • Labels:
      None
    • ALL
    • Storage NYC 2019-03-25
    • 0

      This is only a simple test-fix.
      sharded_backup_restore tests have a writer thread which continuously sends writes to mongos. If there is an election happening on one of the shards, the write command might have transient "NotMaster" error. To prevent the test from failing due to that error, we should make the write command retryable by starting the session with *

      {retryWrites: true}

      *

            Assignee:
            xiangyu.yao@mongodb.com Xiangyu Yao (Inactive)
            Reporter:
            xiangyu.yao@mongodb.com Xiangyu Yao (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: