[SERVER-8603] Cannot reset target specified by syncFrom() Created: 18/Feb/13  Updated: 08/Mar/13  Resolved: 20/Feb/13

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

Type: Question Priority: Major - P3
Reporter: Hiroaki Assignee: Stennie Steneker (Inactive)
Resolution: Done Votes: 0
Labels: replicaset
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

CentOS6.2


Participants:

 Description   

I could specify the sync target by using rs.syncFrom("[host]:[port]").
And I also could overwrite the sync target.
But I could not reset the target !

RS:SECONDARY> rs.syncFrom(null)
{
        "syncFromRequested" : "",
        "ok" : 0,
        "errmsg" : "could not find member in replica set"
}

Is there the way to reset the sync target ?
Or I have to restart the mongod process ?
(sync target is merely saved on memory in process)



 Comments   
Comment by Hiroaki [ 21/Feb/13 ]

I understood and confirmed its movement.

Thanks !

Comment by Stennie Steneker (Inactive) [ 20/Feb/13 ]

Hi,

As per the replSetSyncFrom documentation, this command provides a temporary override of default behaviour. There are specific notes on the documentation page for when this setting will be reset (which includes a restart of mongod).

If you use the rs.syncFrom() helper in the mongo shell you need to specify a valid host in the replica set to sync from (for example, the primary if you want to effectively "reset" syncing from another secondary).

Cheers,
Stephen

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