[SERVER-20841] "writer worker caught exception" error in secondary node of replica set Created: 09/Oct/15  Updated: 28/Oct/15  Resolved: 28/Oct/15

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

Type: Bug Priority: Major - P3
Reporter: liuxialong Assignee: Unassigned
Resolution: Incomplete Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Operating System: ALL
Participants:

 Description   

one secondary node of the replica set machine down and can't start again.
the error info in log:

2015-10-09T10:31:54.461+0800 [repl writer worker 1] ERROR: writer worker caught exception:  :: caused by :: 16836 The _id field cannot be changed from {_id: ObjectId('5616524702669316c7a37b4f')} to {_id: 1}. on: { ts: Timestamp 1444303433000|1, h: -1340791562348192937, v: 2, op: "i", ns: "test.xiulei", o: { _id: ObjectId('5616524702669316c7a37b4f'), _id: 1, name: "Joe", age: 33 } }

this service of mongd can't start.
How can I solve this problem?



 Comments   
Comment by Ramon Fernandez Marina [ 28/Oct/15 ]

liuxialong, we haven't heard back from you for some time so I'm going to close this ticket. If this is still an issue for you please provide the information requested above so we can investigate further.

Thanks,
Ramón.

Comment by Ramon Fernandez Marina [ 09/Oct/15 ]

liuxialong, can you please upload the logs for the affected secondary? Also what version(s) of MongoDB is this replica set using?

And could you please run the following commands from the shell on your primary?

use test
db.xiulei.find({_id:1})
db.xiulei.find({_id: ObjectId('5616524702669316c7a37b4f')})

Any additional information about the operations you were performing when this happen would be useful to try to track this issue down.

Thanks,
Ramón.

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