[SERVER-53559] Stop the background workload in the backup/restore test before adding the node from the backed up data to the replica set Created: 04/Jan/21  Updated: 29/Oct/23  Resolved: 04/Jan/21

Status: Closed
Project: Core Server
Component/s: Testing Infrastructure
Affects Version/s: None
Fix Version/s: 4.9.0, 4.4.4

Type: Bug Priority: Major - P3
Reporter: Gregory Wlodarek Assignee: Gregory Wlodarek
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Depends
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v4.4
Sprint: Execution Team 2021-01-11
Participants:
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)
        }
    }
}



 Comments   
Comment by Githook User [ 04/Jan/21 ]

Author:

{'name': 'Gregory Wlodarek', 'email': 'gregory.wlodarek@mongodb.com', 'username': 'GWlodarek'}

Message: SERVER-53559 Stop the background workload in the backup/restore test before adding the node from the backed up data to the replica set

(cherry picked from commit f012be046c8a16fe80ca3c08ee19a48931feb696)
Branch: v4.4
https://github.com/mongodb/mongo/commit/37c3f6d3aafffc2be14ee2de149949f9b1de0ace

Comment by Githook User [ 04/Jan/21 ]

Author:

{'name': 'Gregory Wlodarek', 'email': 'gregory.wlodarek@mongodb.com', 'username': 'GWlodarek'}

Message: SERVER-53559 Stop the background workload in the backup/restore test before adding the node from the backed up data to the replica set
Branch: master
https://github.com/mongodb/mongo/commit/f012be046c8a16fe80ca3c08ee19a48931feb696

Generated at Thu Feb 08 05:31:15 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.