aravindtga opened a new issue #8343:
URL: https://github.com/apache/pulsar/issues/8343


   **Describe the bug**
   Kafka source connector doesn't reconnect with Kafka after Kafka node failed 
and boots up again.
   
   **To Reproduce**
   Steps to reproduce the behaviour:
   1. Run Kafka 
   2. Run pulsar(2.6.1 pulsar-all image)
   3. Create and run source connector in pulsar to connect with Kafka
   4. Now it can be seen that source connector fetches the message from Kafka 
and put it back in pulsar topic
   5. Bring down Kafka
   6. Run Kafka
   7. Source connector fails to connect Kafka with the below error and doesn't 
fetch the Kafka messages anymore
   
   ```
   14:06:16.273 [kafka-coordinator-heartbeat-thread | 2.0] WARN  
org.apache.kafka.clients.consumer.internals.AbstractCoordinator - [Consumer 
clientId=consumer-1, groupId=2.0] This member will leave the group because 
consumer poll timeout has expired. This means the time between subsequent calls 
to poll() was longer than the configured max.poll.interval.ms, which typically 
implies that the poll loop is spending too much time processing messages. You 
can address this either by increasing max.poll.interval.ms or by reducing the 
maximum size of batches returned in poll() with max.poll.records.
   14:06:16.273 [kafka-coordinator-heartbeat-thread | 2.0] INFO  
org.apache.kafka.clients.consumer.internals.AbstractCoordinator - [Consumer 
clientId=consumer-1, groupId=2.0] Member 
consumer-1-25a80c1d-78bc-4faa-b3d7-16bc259eaa07 sending LeaveGroup request to 
coordinator kafkaserver:9092 (id: 2147483647 rack: null)
   ```
   7. source connector status is also showing as running without any error or 
restarts 
   ```json
   root@c44d5fd34c32:/pulsar/bin# ./pulsar-admin sources status --name 
testsource
   {
     "numInstances" : 1,
     "numRunning" : 1,
     "instances" : [ {
       "instanceId" : 0,
       "status" : {
         "running" : true,
         "error" : "",
         "numRestarts" : 0,
         "numReceivedFromSource" : 2,
         "numSystemExceptions" : 0,
         "latestSystemExceptions" : [ ],
         "numSourceExceptions" : 0,
         "latestSourceExceptions" : [ ],
         "numWritten" : 2,
         "lastReceivedTime" : 1603366780740,
         "workerId" : "c-standalone-fw-localhost-8080"
       }
     } ]
   }
   ````
   
   **Expected behaviour**
   Source connector should reconnect with Kafka.
   If the failure is not recoverable, source connector status should throw the 
error/running=false
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to