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

Stop the background workload in the backup/restore test before adding the node from the backed up data to the replica set

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.9.0, 4.4.4
    • Component/s: Testing Infrastructure
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Backport Requested:
      v4.4
    • Sprint:
      Execution Team 2021-01-11
    • Linked BF Score:
      18

      Description

      In the backup and restore test infrastructure, we run a background workload against the primary node to generate data. Eventually, we add a new node to the replica set from the backed up data to verify its integrity and correctness. This triggers an election in the replica set and it's possible for a new primary to be elected. However, we continue to run the background workload during this and tests executing commands will fail:

      {
          "topologyVersion" : {
              "processId" : ObjectId("5fc7fecfdc93d053ec7a5c62"),
              "counter" : NumberLong(9)
          },
          "operationTime" : Timestamp(1606943542, 191),
          "ok" : 0,
          "errmsg" : "not master and slaveOk=false",
          "code" : 13435,
          "codeName" : "NotPrimaryNoSecondaryOk",
          "$clusterTime" : {
              "clusterTime" : Timestamp(1606943542, 191),
              "signature" : {
                  "hash" : BinData(0,"AAAAAAAAAAAAAAAAAAAAAAAAAAA="),
                  "keyId" : NumberLong(0)
              }
          }
      }
      

        Attachments

          Activity

            People

            Assignee:
            gregory.wlodarek Gregory Wlodarek
            Reporter:
            gregory.wlodarek Gregory Wlodarek
            Participants:
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: