Hi @steevej
Thanks a lot for your answer, this is the config I have, I had to redo the entire config.
In my
[SOURCE CLUSTER]
mongos> db.recipes.countDocuments({})
10720
mongos> db.meals.countDocuments({})
3983
and my
[DESTINATION CLUSTER]
db.recipes.countDocuments({})
10720
db.meals.countDocuments({})
3983
So everything looks pretty good now, documents count match for those collections in both clusters,
but if I wait maybe tomorrow or sometimes.
in my [DESTINATION CLUSTER], the collection recipes and meals contain 0 documents.
This is my sink configuration I have
"config": {
"connector.class": "com.mongodb.kafka.connect.MongoSinkConnector",
"confluent.topic.bootstrap.servers": "boot:9092",
"tasks.max": "1",
"database": "DEV",
"topics.regex": "prefix\\.DEV.*",
"topic.override.prefix.DEV.meals.collection": "meals",
"topic.override.prefix.DEV.recipes.collection": "recipes",
"change.data.capture.handler": "com.mongodb.kafka.connect.sink.cdc.mongodb.ChangeStreamHandler"
},
Those collections are automatically created by the sink connector with no index besides the default id one.
Not sure, why the collections become empty after a certain time.
Thank you.