Answer the question
In order to leave comments, you need to log in
Mongodb master-slave: why can't slave merge base?
Good afternoon dear ones.
I configure master-slave replication (not replicaSet). Everything has risen, everything has started, the slave has started replication (option resync = true). In a few hours, he downloaded 20% of the database, the next 7 hours - everything remained at the same 20% - it no longer works.
Judging by the logs, replication continues, but with some errors.
Excerpt from mongodb.log :
Wed Dec 3 14:55:58.657 [replslave] replication info adding missing object
Wed Dec 3 14:55:58.657 [replslave] replication missing doc, but this is okay for a capped collection (test.customdata)
Wed Dec 3 14:55:58.657 [replslave] replication missing object not found on source. presumably deleted later in oplog
Wed Dec 3 14:55:58.657 [replslave] replication o2: { _id: ObjectId('547efa441eff6701f278c2fe') }
Wed Dec 3 14:55:58.657 [replslave] replication o firstfield: $set
Wed Dec 3 14:56:00.655 [replslave] replication update of non-mod failed: { ts: Timestamp 1417607836000|3, op: "u", ns: "test.customdata", o2: { _id: ObjectId('547ef6781eff6701f2788f62') }, o: { $set: { value: { autoexpandfeed: "no" } } } }
Wed Dec 3 14:56:00.655 [replslave] replication info adding missing object
Wed Dec 3 14:56:00.655 [replslave] replication missing doc, but this is okay for a capped collection (test.customdata)
Wed Dec 3 14:56:00.655 [replslave] replication missing object not found on source. presumably deleted later in oplog
Wed Dec 3 14:56:00.655 [replslave] replication o2: { _id: ObjectId('547ef6781eff6701f2788f62') }
Wed Dec 3 14:56:00.655 [replslave] replication o firstfield: $set
Wed Dec 3 14:56:05.379 [replslave] replication update of non-mod failed: { ts: Timestamp 1417607840000|11, op: "u", ns: "test.customdata", o2: { _id: ObjectId('547ef6781eff6701f2788f62') }, o: { $set: { value: { autoexpandfeed: "no" } } } }
Wed Dec 3 14:56:05.379 [replslave] replication info adding missing object
Wed Dec 3 14:56:05.379 [replslave] replication missing doc, but this is okay for a capped collection (test.customdata)
Wed Dec 3 14:56:05.379 [replslave] replication missing object not found on source. presumably deleted later in oplog
Wed Dec 3 14:56:05.379 [replslave] replication o2: { _id: ObjectId('547ef6781eff6701f2788f62') }
Wed Dec 3 14:56:05.379 [replslave] replication o firstfield: $set
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question