[SERVER-2484] Cannot set "initialSync" replica set config Created: 05/Feb/11 Updated: 12/Jul/16 Resolved: 06/Feb/11 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Replication |
| Affects Version/s: | 1.7.5 |
| Fix Version/s: | 1.7.6 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | David Mytton | Assignee: | Kristina Chodorow (Inactive) |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Operating System: | ALL |
| Participants: |
| Description |
|
Attempting to reconfigure a replica set with the initialSync config options doesn't work. david@rs1a ~: ./console , , , , { "_id" : 5, "host" : "rs1d:27018", "priority" : 0, "slaveDelay" : 7200, "hidden" : true } ] set1:PRIMARY> cfg.members[1].initialSync = {state: 2} { "state" : 2 }set1:PRIMARY> cfg.members[3].initialSync = {state: 2} { "state" : 2 }set1:PRIMARY> cfg.members[4].initialSync = {state: 2} { "state" : 2 }set1:PRIMARY> cfg }, }, , }, } }, { _id: 1, host: "rs1b:27018", initialSync: { state: 2.0 }}, { _id: 3, host: "rs1arbiter:27018", arbiterOnly: true }, { _id: 4, host: "rs1c:27018", priority: 0.0, hidden: true, initialSync: { state: 2.0 }}, { _id: 5, host: "rs1d:27018", priority: 0.0, slaveDelay: 7200, hidden: true, initialSync: { state: 2.0 } } ] } } to: localhost:27018 , , , , { "_id" : 5, "host" : "rs1d:27018", "priority" : 0, "slaveDelay" : 7200, "hidden" : true } ] |
| Comments |
| Comment by auto [ 06/Feb/11 ] |
|
Author: {u'login': u'kchodorow', u'name': u'Kristina', u'email': u'kristina@10gen.com'}Message: fix initialSync on reconfig |
| Comment by Kristina Chodorow (Inactive) [ 06/Feb/11 ] |
|
Yes, the "syncing to:" line indicates which server it's copying data from. |
| Comment by David Mytton [ 05/Feb/11 ] |
|
That message was from the log on rs1d. rs1a was (and still is) the master. rs1c is a slave. Can't current resync rs1d because of CS-303. set1:PRIMARY> rs.status() , , , , , |
| Comment by Alvin Richards (Inactive) [ 05/Feb/11 ] |
|
At the point you got that message, which member was the primary? From the config, r21c was hidden { |
| Comment by David Mytton [ 05/Feb/11 ] |
|
I'm resyncing a slave (rs1d) and it looks like it might be syncing from slave as per the reconfig. Is that what "Sat Feb 5 08:22:23 [replica set sync] replSet syncing to: rs1c:27018" means? Sat Feb 5 08:22:12 [FileAllocator] done allocating datafile /mongodbdata/local.75, size: 2047MB, took 5.773 secs reslen:192 426523ms for local.me |