Hi All,
We developed file source connectors(which suppose to pick files from specified location and process one after another) with source partition and source offset to capture previous offset to continue during the re-balancing while new connectors are added to worker.
But during the re-balancing I observed that a new connect instance is getting created for already running connector, continuing both instance to parallel and logs are showing following error. A new connector instance is getting created each time whenever connectors are added/deleted to the worker.
[2018-07-16 07:07:11,575] INFO Rebalance started (org.apache.kafka.connect.runtime.distributed.DistributedHerder:1214)
[2018-07-16 07:07:11,575] INFO Stopping task ami-bge-location-source-connector-0 (org.apache.kafka.connect.runtime.Worker:464)
[2018-07-16 07:07:16,576] ERROR Graceful stop of task ami-bge-location-source-connector-0 failed. (org.apache.kafka.connect.runtime.Worker:493)
[2018-07-16 07:07:16,576] INFO Finished stopping tasks in preparation for rebalance (org.apache.kafka.connect.runtime.distributed.DistributedHerder:1244)
[2018-07-16 07:07:16,576] INFO [Worker clientId=connect-1, groupId=ami-comed-source-connector] (Re-)joining group
Please suggest how to restrict creating new instances for already running connector and resolve Graceful stop failed issue.
Regards,
Anirudh.