[SERVER-34335] MongoDB Replica Set member cannot start "84 key/value already in index" Created: 05/Apr/18  Updated: 24/Apr/18  Resolved: 09/Apr/18

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

Type: Question Priority: Major - P3
Reporter: Vinicius Deschamps Assignee: Ramon Fernandez Marina
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Participants:

 Description   

Hi,

I have a Replica Set with 3 members (1 primary and 2 secondaries), and one of the secondaries was working just fine and thrown the following error

2018-03-12T11:03:54.868-0400 E REPL     [repl writer worker 13] writer worker caught exception:  :: caused by :: 84 key/value already in index on: { ts: Timestamp 1520867034000|8, h: 287037468373256260, v: 2, op: "u", ns: "Sitecore_analytics_PROD.Interactions", o2: { _id: BinData(3, EFC3DD1A15B75442986344FDE9CC71EB) }, o: { $set: { ContactVisitIndex: 2 } } }
2018-03-12T11:03:54.868-0400 I -        [repl writer worker 13] Fatal Assertion 16360
2018-03-12T11:03:54.868-0400 I -        [repl writer worker 13] 
***aborting after fassert() failure

After that the MongoDB cannot start anymore, and keep throwing the same error!

How can I determine the root cause of it? Is there a way to prevent? How to solve it?



 Comments   
Comment by Ramon Fernandez Marina [ 09/Apr/18 ]

vdeschamps, if I remember correctly, this error is triggered when the secondary is trying to index a document that's already present in the index; determining how this happened may not be feasible, so my recommendation would be to resync this node from a healthy one.

Note that the MongoDB version you're running is very old and no longer supported, so I'd recommend you upgrade to the newest version (3.6) at your earliest convenience.

Please note that the SERVER project is for reporting bugs or feature suggestions for the MongoDB server. For MongoDB-related support discussion please post on the mongodb-user group or Stack Overflow with the mongodb tag, where your question will reach a larger audience. A question like this involving more discussion would be best posted on the mongodb-user group. See also our Technical Support page for additional support resources.

Regards,
Ramón.

Generated at Thu Feb 08 04:36:19 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.