I want to add new servers to my replica set.
So I used rs.add("<IP>:<PORT>")
to add the servers.
But the servers became not reachable. On checking Logs I found out it was feature compatibility version issue. So I updated the feature Compatibility Version using, db.adminCommand({ setFeatureCompatibilityVersion: "3.6" })
.
But on checking status I got,
rspp1:PRIMARY> db.adminCommand( { getParameter: 1, featureCompatibilityVersion: 1 } )
{
"featureCompatibilityVersion" : {
"version" : "3.4",
"targetVersion" : "3.6"
},
"ok" : 1,
"$gleStats" : {
"lastOpTime" : {
"ts" : Timestamp(1681888293, 1),
"t" : NumberLong(27)
},
"electionId" : ObjectId("7fffffff000000000000001b")
},
"$configServerState" : {
"opTime" : {
"ts" : Timestamp(1681889207, 1),
"t" : NumberLong(5)
}
}
}
.
This means for some reason my upgrade is stuck and not finished.
I need a way to revert it back to 3.4.
Also db.adminCommand({ setFeatureCompatibilityVersion: "3.4" })
doesn’t work because the first upgrade is not completed yet.
I want ot stop the update and revert it back to 3.4
Kindly help me.