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
已提問 1 年前檢視次數 189 次
1 個回答
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
支援工程師
已回答 1 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南