com.mongodb.MongoWriteException

0

I am seeing repeated error in MSK connector logs. Any idea what might be causing this and how to resolve? Error wording is as follows

Task threw an uncaught and unrecoverable exception
'duplicate key error collection'
Abhinav
asked a year ago178 views
1 Answer
0

Hi there,

It seems you are using mongoDB connector in MSK Connect, and the error originates at database's end.

'duplicate key error collection' might be caused by Unique indexes[1], which will not allow an operation to insert a new document with an existing indexed field. I suggest you look into the documents being inserted and see if there is any duplication in some of the fields.

If the issue still persists, please create a support case with AWS using link[2] and include more detailed logs.

[1] https://www.mongodb.com/docs/v4.2/core/index-unique/index.html?_ga=2.260644621.1633400316.1688007655-301732751.1688007655#unique-indexes

[2] https://console.aws.amazon.com/support/home#/case/create

AWS
SUPPORT ENGINEER
answered a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions