[SERVER-978] Don't save a bogus replication --source Created: 06/Apr/10  Updated: 12/Jul/16  Resolved: 22/Oct/10

Status: Closed
Project: Core Server
Component/s: Replication
Affects Version/s: None
Fix Version/s: 1.6.4, 1.7.2

Type: Bug Priority: Minor - P4
Reporter: Richard Kreuter (Inactive) Assignee: Kristina Chodorow (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Participants:

 Description   

We save the --source argument even when a slave is started with a bogus (unparseable, unresolvable, or unreachable) --source argument, and then refuse to start a mongod whose --source disagrees with a stored one. Taken together, this sort of unduly punishes a simple typo.



 Comments   
Comment by auto [ 26/Oct/10 ]

Author:

{'login': 'kchodorow', 'name': 'Kristina Chodorow', 'email': 'kristina@10gen.com'}

Message: add doc link for bad repl source SERVER-978
http://github.com/mongodb/mongo/commit/1f57383462db6a754c99abb3208a1fb985f67918

Comment by auto [ 22/Oct/10 ]

Author:

{'login': 'kchodorow', 'name': 'Kristina Chodorow', 'email': 'kristina@10gen.com'}

Message: add doc link for bad repl source SERVER-978
http://github.com/mongodb/mongo/commit/0cf16a382f906714697e25270cc37ed60a0f8419

Comment by Kristina Chodorow (Inactive) [ 14/Jun/10 ]

Note on behavior of a slave when the source argument doesn't match its last setting:

If I start a slave with

./mongod --slave --dbpath ~/dbs/slave/ --port 27018 --source localhost:27017

and then I stop it and restart it with:

./mongod --slave --dbpath ~/dbs/slave/ --port 27018 --source localhost

it says:

Mon Jun 14 13:29:12 repl: --source localhost != localhost:27017 from local.sources collection
Mon Jun 14 13:29:12 repl: terminating mongod after 30 seconds

Generated at Thu Feb 08 02:55:42 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.