Hi Team,
I am using mongoDB debezium connector on kafka-connect to ingest data from MongoDB bin logs.
When I tried to pause--> change config --> resume the connector, it loses it's offset.
Also when I tried to directly change config for running connector (using
change-config API ) debezium connector is losing it's source offset and start ingesting data from scratch from mongoDB bin-logs.
Configuration change is like changing batch_size and queue_size to monitor the throughput.
Queries :
Is there any way so that source-offset (means how much data connector has read from bin-logs) couldn't be lost and on restarting the connector, it starts ingesting data from the committed offset only not from scratch.
Also from where can we get how much data Debezium connector has read from source? (here mongoDB bin-logs)
Suspected issue:
When I tried to look for committed offsets in 'connect-offsets' topic , for some collections I am receiving 'resume_token' field and for some collections it is missing. It seems 'resume_token' field is used to maintain the committed offset. And for collections, where it is not present, offset is being lost.
Any help would be appreciated
Attachments showing resume_token:
Regards:
Nikhil Jain