[SERVER-2607] Cannot resize rs oplog with --oplogSize anymore Created: 22/Feb/11  Updated: 29/Feb/12  Resolved: 02/Sep/11

Status: Closed
Project: Core Server
Component/s: Replication
Affects Version/s: 1.7.6
Fix Version/s: None

Type: Bug Priority: Critical - P2
Reporter: Scott Hernandez (Inactive) Assignee: Unassigned
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Operating System: ALL
Participants:

 Description   

Now that the oplog is created during rs initialization I suspect the command line/config option no longer works as expected.

mongod --replSet test --oplogSize 10 --port 2002 --dbpath /tmp/rs2

mongod --replSet test --oplogSize 20 --port 2002 --dbpath /tmp/rs2

Here are the results after the two restarts.

Mon Feb 21 22:45:31 trying reconnect to 127.0.0.1:2002
Mon Feb 21 22:45:31 reconnect 127.0.0.1:2002 ok
test:SECONDARY> db.getReplicationInfo()
{
"logSizeMB" : 10,
"usedMB" : 0.01,
"timeDiff" : 86,
"timeDiffHours" : 0.02,
"tFirst" : "Mon Feb 21 2011 22:39:31 GMT-0800 (PST)",
"tLast" : "Mon Feb 21 2011 22:40:57 GMT-0800 (PST)",
"now" : "Mon Feb 21 2011 22:45:33 GMT-0800 (PST)"
}
test:SECONDARY> db.getMongo()
connection to 127.0.0.1:2002
test:SECONDARY> db.getReplicationInfo()
{
"logSizeMB" : 10,
"usedMB" : 0.01,
"timeDiff" : 86,
"timeDiffHours" : 0.02,
"tFirst" : "Mon Feb 21 2011 22:39:31 GMT-0800 (PST)",
"tLast" : "Mon Feb 21 2011 22:40:57 GMT-0800 (PST)",
"now" : "Mon Feb 21 2011 22:45:58 GMT-0800 (PST)"
}
test:SECONDARY>


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