[ 
https://issues.apache.org/jira/browse/KAFKA-8104?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Gregory Koshelev updated KAFKA-8104:
------------------------------------
    Attachment: consumer-rejoin-fail.log

> Consumer cannot rejoin to the group after rebalancing
> -----------------------------------------------------
>
>                 Key: KAFKA-8104
>                 URL: https://issues.apache.org/jira/browse/KAFKA-8104
>             Project: Kafka
>          Issue Type: Bug
>          Components: consumer
>    Affects Versions: 2.0.0
>            Reporter: Gregory Koshelev
>            Priority: Major
>         Attachments: consumer-rejoin-fail.log
>
>
> TL;DR; {{KafkaConsumer}} cannot rejoin to the group due to inconsistent 
> {{AbstractCoordinator.generation}} (which is {{NO_GENERATION}} and 
> {{AbstractCoordinator.joinFuture}} (which is succeeded {{RequestFuture}}). 
> See explanation below.
> There are 16 consumers in single process (threads from pool-4-thread-1 to 
> pool-4-thread-16). All of them belong to single consumer group 
> {{hercules.sink.elastic.legacy_logs_elk_c2}}. Rebalancing has been acquired 
> and consumers have got {{CommitFailedException}} as expected:
> {{2019-03-10T03:16:37.023Z [pool-4-thread-10] WARN  
> r.k.vostok.hercules.sink.SimpleSink - Commit failed due to rebalancing
> org.apache.kafka.clients.consumer.CommitFailedException: Commit cannot be 
> completed since the group has already rebalanced and assigned the partitions 
> to another member. This means that 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 message processing. You 
> can address this either by increasing the session timeout or by reducing the 
> maximum size of batches returned in poll() with max.poll.records.
>       at 
> org.apache.kafka.clients.consumer.internals.ConsumerCoordinator.sendOffsetCommitRequest(ConsumerCoordinator.java:798)
>       at 
> org.apache.kafka.clients.consumer.internals.ConsumerCoordinator.commitOffsetsSync(ConsumerCoordinator.java:681)
>       at 
> org.apache.kafka.clients.consumer.KafkaConsumer.commitSync(KafkaConsumer.java:1334)
>       at 
> org.apache.kafka.clients.consumer.KafkaConsumer.commitSync(KafkaConsumer.java:1298)
>       at ru.kontur.vostok.hercules.sink.Sink.commit(Sink.java:156)
>       at ru.kontur.vostok.hercules.sink.SimpleSink.run(SimpleSink.java:104)
>       at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
>       at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
>       at java.lang.Thread.run(Thread.java:748)
> 2019-03-10T03:16:37.043Z [pool-4-thread-11] WARN  
> r.k.vostok.hercules.sink.SimpleSink - Commit failed due to rebalancing
> org.apache.kafka.clients.consumer.CommitFailedException: Commit cannot be 
> completed since the group has already rebalanced and assigned the partitions 
> to another member. This means that 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 message processing. You 
> can address this either by increasing the session timeout or by reducing the 
> maximum size of batches returned in poll() with max.poll.records.
>       at 
> org.apache.kafka.clients.consumer.internals.ConsumerCoordinator.sendOffsetCommitRequest(ConsumerCoordinator.java:798)
>       at 
> org.apache.kafka.clients.consumer.internals.ConsumerCoordinator.commitOffsetsSync(ConsumerCoordinator.java:681)
>       at 
> org.apache.kafka.clients.consumer.KafkaConsumer.commitSync(KafkaConsumer.java:1334)
>       at 
> org.apache.kafka.clients.consumer.KafkaConsumer.commitSync(KafkaConsumer.java:1298)
>       at ru.kontur.vostok.hercules.sink.Sink.commit(Sink.java:156)
>       at ru.kontur.vostok.hercules.sink.SimpleSink.run(SimpleSink.java:104)
>       at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
>       at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
>       at java.lang.Thread.run(Thread.java:748)
> 2019-03-10T03:16:37.045Z [pool-4-thread-1] WARN  
> r.k.vostok.hercules.sink.SimpleSink - Commit failed due to rebalancing
> org.apache.kafka.clients.consumer.CommitFailedException: Commit cannot be 
> completed since the group has already rebalanced and assigned the partitions 
> to another member. This means that 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 message processing. You 
> can address this either by increasing the session timeout or by reducing the 
> maximum size of batches returned in poll() with max.poll.records.
>       at 
> org.apache.kafka.clients.consumer.internals.ConsumerCoordinator.sendOffsetCommitRequest(ConsumerCoordinator.java:798)
>       at 
> org.apache.kafka.clients.consumer.internals.ConsumerCoordinator.commitOffsetsSync(ConsumerCoordinator.java:681)
>       at 
> org.apache.kafka.clients.consumer.KafkaConsumer.commitSync(KafkaConsumer.java:1334)
>       at 
> org.apache.kafka.clients.consumer.KafkaConsumer.commitSync(KafkaConsumer.java:1298)
>       at ru.kontur.vostok.hercules.sink.Sink.commit(Sink.java:156)
>       at ru.kontur.vostok.hercules.sink.SimpleSink.run(SimpleSink.java:104)
>       at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
>       at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
>       at java.lang.Thread.run(Thread.java:748)
> 2019-03-10T03:16:38.350Z [kafka-coordinator-heartbeat-thread | 
> hercules.sink.elastic.legacy_logs_elk_c2] INFO  
> o.a.k.c.c.i.AbstractCoordinator - [Consumer clientId=consumer-9, 
> groupId=hercules.sink.elastic.legacy_logs_elk_c2] Attempt to heartbeat failed 
> since group is rebalancing
> 2019-03-10T03:16:39.207Z [pool-4-thread-4] WARN  
> r.k.vostok.hercules.sink.SimpleSink - Commit failed due to rebalancing
> org.apache.kafka.clients.consumer.CommitFailedException: Commit cannot be 
> completed since the group has already rebalanced and assigned the partitions 
> to another member. This means that 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 message processing. You 
> can address this either by increasing the session timeout or by reducing the 
> maximum size of batches returned in poll() with max.poll.records.
>       at 
> org.apache.kafka.clients.consumer.internals.ConsumerCoordinator.sendOffsetCommitRequest(ConsumerCoordinator.java:798)
>       at 
> org.apache.kafka.clients.consumer.internals.ConsumerCoordinator.commitOffsetsSync(ConsumerCoordinator.java:681)
>       at 
> org.apache.kafka.clients.consumer.KafkaConsumer.commitSync(KafkaConsumer.java:1334)
>       at 
> org.apache.kafka.clients.consumer.KafkaConsumer.commitSync(KafkaConsumer.java:1298)
>       at ru.kontur.vostok.hercules.sink.Sink.commit(Sink.java:156)
>       at ru.kontur.vostok.hercules.sink.SimpleSink.run(SimpleSink.java:104)
>       at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
>       at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
>       at java.lang.Thread.run(Thread.java:748)
> }}
> After that, most of them successfully rejoined to the group with generation 
> 10699:
> {{2019-03-10T03:16:39.208Z [pool-4-thread-13] INFO  
> o.a.k.c.c.i.AbstractCoordinator - [Consumer clientId=consumer-13, 
> groupId=hercules.sink.elastic.legacy_logs_elk_c2] Successfully joined group 
> with generation 10699
> 2019-03-10T03:16:39.209Z [pool-4-thread-13] INFO  
> o.a.k.c.c.i.ConsumerCoordinator - [Consumer clientId=consumer-13, 
> groupId=hercules.sink.elastic.legacy_logs_elk_c2] Setting newly assigned 
> partitions [legacy_logs_elk_c2-18]
> 2019-03-10T03:16:39.216Z [pool-4-thread-16] INFO  
> o.a.k.c.c.i.AbstractCoordinator - [Consumer clientId=consumer-16, 
> groupId=hercules.sink.elastic.legacy_logs_elk_c2] Successfully joined group 
> with generation 10699
> 2019-03-10T03:16:39.216Z [pool-4-thread-15] INFO  
> o.a.k.c.c.i.AbstractCoordinator - [Consumer clientId=consumer-15, 
> groupId=hercules.sink.elastic.legacy_logs_elk_c2] Successfully joined group 
> with generation 10699
> 2019-03-10T03:16:39.216Z [pool-4-thread-10] INFO  
> o.a.k.c.c.i.AbstractCoordinator - [Consumer clientId=consumer-10, 
> groupId=hercules.sink.elastic.legacy_logs_elk_c2] Successfully joined group 
> with generation 10699
> 2019-03-10T03:16:39.216Z [pool-4-thread-7] INFO  
> o.a.k.c.c.i.AbstractCoordinator - [Consumer clientId=consumer-7, 
> groupId=hercules.sink.elastic.legacy_logs_elk_c2] Successfully joined group 
> with generation 10699
> 2019-03-10T03:16:39.216Z [pool-4-thread-8] INFO  
> o.a.k.c.c.i.AbstractCoordinator - [Consumer clientId=consumer-8, 
> groupId=hercules.sink.elastic.legacy_logs_elk_c2] Successfully joined group 
> with generation 10699
> 2019-03-10T03:16:39.216Z [pool-4-thread-5] INFO  
> o.a.k.c.c.i.AbstractCoordinator - [Consumer clientId=consumer-5, 
> groupId=hercules.sink.elastic.legacy_logs_elk_c2] Successfully joined group 
> with generation 10699
> 2019-03-10T03:16:39.216Z [pool-4-thread-12] INFO  
> o.a.k.c.c.i.AbstractCoordinator - [Consumer clientId=consumer-12, 
> groupId=hercules.sink.elastic.legacy_logs_elk_c2] Successfully joined group 
> with generation 10699
> 2019-03-10T03:16:39.216Z [pool-4-thread-2] INFO  
> o.a.k.c.c.i.AbstractCoordinator - [Consumer clientId=consumer-2, 
> groupId=hercules.sink.elastic.legacy_logs_elk_c2] Successfully joined group 
> with generation 10699
> 2019-03-10T03:16:39.216Z [pool-4-thread-6] INFO  
> o.a.k.c.c.i.AbstractCoordinator - [Consumer clientId=consumer-6, 
> groupId=hercules.sink.elastic.legacy_logs_elk_c2] Successfully joined group 
> with generation 10699
> 2019-03-10T03:16:39.216Z [pool-4-thread-14] INFO  
> o.a.k.c.c.i.AbstractCoordinator - [Consumer clientId=consumer-14, 
> groupId=hercules.sink.elastic.legacy_logs_elk_c2] Successfully joined group 
> with generation 10699
> 2019-03-10T03:16:39.216Z [pool-4-thread-10] INFO  
> o.a.k.c.c.i.ConsumerCoordinator - [Consumer clientId=consumer-10, 
> groupId=hercules.sink.elastic.legacy_logs_elk_c2] Setting newly assigned 
> partitions [legacy_logs_elk_c2-6, legacy_logs_elk_c2-7]
> 2019-03-10T03:16:39.216Z [pool-4-thread-3] INFO  
> o.a.k.c.c.i.AbstractCoordinator - [Consumer clientId=consumer-3, 
> groupId=hercules.sink.elastic.legacy_logs_elk_c2] Successfully joined group 
> with generation 10699
> 2019-03-10T03:16:39.216Z [pool-4-thread-1] INFO  
> o.a.k.c.c.i.AbstractCoordinator - [Consumer clientId=consumer-1, 
> groupId=hercules.sink.elastic.legacy_logs_elk_c2] Successfully joined group 
> with generation 10699
> 2019-03-10T03:16:39.216Z [pool-4-thread-1] INFO  
> o.a.k.c.c.i.ConsumerCoordinator - [Consumer clientId=consumer-1, 
> groupId=hercules.sink.elastic.legacy_logs_elk_c2] Setting newly assigned 
> partitions [legacy_logs_elk_c2-0, legacy_logs_elk_c2-1]
> 2019-03-10T03:16:39.216Z [pool-4-thread-11] INFO  
> o.a.k.c.c.i.AbstractCoordinator - [Consumer clientId=consumer-11, 
> groupId=hercules.sink.elastic.legacy_logs_elk_c2] Successfully joined group 
> with generation 10699
> 2019-03-10T03:16:39.217Z [pool-4-thread-11] INFO  
> o.a.k.c.c.i.ConsumerCoordinator - [Consumer clientId=consumer-11, 
> groupId=hercules.sink.elastic.legacy_logs_elk_c2] Setting newly assigned 
> partitions [legacy_logs_elk_c2-10, legacy_logs_elk_c2-11]
> 2019-03-10T03:16:39.217Z [pool-4-thread-16] INFO  
> o.a.k.c.c.i.ConsumerCoordinator - [Consumer clientId=consumer-16, 
> groupId=hercules.sink.elastic.legacy_logs_elk_c2] Setting newly assigned 
> partitions [legacy_logs_elk_c2-25]
> 2019-03-10T03:16:39.217Z [pool-4-thread-3] INFO  
> o.a.k.c.c.i.ConsumerCoordinator - [Consumer clientId=consumer-3, 
> groupId=hercules.sink.elastic.legacy_logs_elk_c2] Setting newly assigned 
> partitions [legacy_logs_elk_c2-32]
> 2019-03-10T03:16:39.217Z [pool-4-thread-8] INFO  
> o.a.k.c.c.i.ConsumerCoordinator - [Consumer clientId=consumer-8, 
> groupId=hercules.sink.elastic.legacy_logs_elk_c2] Setting newly assigned 
> partitions [legacy_logs_elk_c2-45]
> 2019-03-10T03:16:39.218Z [pool-4-thread-7] INFO  
> o.a.k.c.c.i.ConsumerCoordinator - [Consumer clientId=consumer-7, 
> groupId=hercules.sink.elastic.legacy_logs_elk_c2] Setting newly assigned 
> partitions [legacy_logs_elk_c2-42]
> 2019-03-10T03:16:39.218Z [pool-4-thread-5] INFO  
> o.a.k.c.c.i.ConsumerCoordinator - [Consumer clientId=consumer-5, 
> groupId=hercules.sink.elastic.legacy_logs_elk_c2] Setting newly assigned 
> partitions [legacy_logs_elk_c2-38]
> 2019-03-10T03:16:39.218Z [pool-4-thread-2] INFO  
> o.a.k.c.c.i.ConsumerCoordinator - [Consumer clientId=consumer-2, 
> groupId=hercules.sink.elastic.legacy_logs_elk_c2] Setting newly assigned 
> partitions [legacy_logs_elk_c2-28]
> 2019-03-10T03:16:39.218Z [pool-4-thread-14] INFO  
> o.a.k.c.c.i.ConsumerCoordinator - [Consumer clientId=consumer-14, 
> groupId=hercules.sink.elastic.legacy_logs_elk_c2] Setting newly assigned 
> partitions [legacy_logs_elk_c2-22]
> 2019-03-10T03:16:39.218Z [pool-4-thread-6] INFO  
> o.a.k.c.c.i.ConsumerCoordinator - [Consumer clientId=consumer-6, 
> groupId=hercules.sink.elastic.legacy_logs_elk_c2] Setting newly assigned 
> partitions [legacy_logs_elk_c2-41]
> 2019-03-10T03:16:39.218Z [pool-4-thread-12] INFO  
> o.a.k.c.c.i.ConsumerCoordinator - [Consumer clientId=consumer-12, 
> groupId=hercules.sink.elastic.legacy_logs_elk_c2] Setting newly assigned 
> partitions [legacy_logs_elk_c2-14]
> 2019-03-10T03:16:39.218Z [pool-4-thread-15] INFO  
> o.a.k.c.c.i.ConsumerCoordinator - [Consumer clientId=consumer-15, 
> groupId=hercules.sink.elastic.legacy_logs_elk_c2] Setting newly assigned 
> partitions [legacy_logs_elk_c2-24]
> 2019-03-10T03:16:42.320Z [kafka-coordinator-heartbeat-thread | 
> hercules.sink.elastic.legacy_logs_elk_c2] INFO  
> o.a.k.c.c.i.AbstractCoordinator - [Consumer clientId=consumer-6, 
> groupId=hercules.sink.elastic.legacy_logs_elk_c2] Attempt to heartbeat failed 
> since group is rebalancing
> 2019-03-10T03:16:42.320Z [kafka-coordinator-heartbeat-thread | 
> hercules.sink.elastic.legacy_logs_elk_c2] INFO  
> o.a.k.c.c.i.AbstractCoordinator - [Consumer clientId=consumer-5, 
> groupId=hercules.sink.elastic.legacy_logs_elk_c2] Attempt to heartbeat failed 
> since group is rebalancing
> 2019-03-10T03:16:42.323Z [kafka-coordinator-heartbeat-thread | 
> hercules.sink.elastic.legacy_logs_elk_c2] INFO  
> o.a.k.c.c.i.AbstractCoordinator - [Consumer clientId=consumer-7, 
> groupId=hercules.sink.elastic.legacy_logs_elk_c2] Attempt to heartbeat failed 
> since group is rebalancing
> 2019-03-10T03:17:13.235Z [pool-4-thread-4] INFO  
> o.a.k.c.c.i.AbstractCoordinator - [Consumer clientId=consumer-4, 
> groupId=hercules.sink.elastic.legacy_logs_elk_c2] Successfully joined group 
> with generation -1
> }}
> But one consumer (pool-4-thread-4) got strange generation -1 (see last log 
> record from above).
> Further log records:
> {{2019-03-10T03:17:13.235Z [pool-4-thread-1] INFO  
> o.a.k.clients.FetchSessionHandler - [Consumer clientId=consumer-1, 
> groupId=hercules.sink.elastic.legacy_logs_elk_c2] Error sending fetch request 
> (sessionId=1818694682, epoch=2700) to node 2: 
> org.apache.kafka.common.errors.DisconnectException.
> 2019-03-10T03:17:13.235Z [pool-4-thread-1] INFO  
> o.a.k.clients.FetchSessionHandler - [Consumer clientId=consumer-1, 
> groupId=hercules.sink.elastic.legacy_logs_elk_c2] Error sending fetch request 
> (sessionId=1863656434, epoch=2827) to node 3: 
> org.apache.kafka.common.errors.DisconnectException.
> 2019-03-10T03:17:13.235Z [pool-4-thread-10] INFO  
> o.a.k.clients.FetchSessionHandler - [Consumer clientId=consumer-10, 
> groupId=hercules.sink.elastic.legacy_logs_elk_c2] Error sending fetch request 
> (sessionId=87100891, epoch=3146) to node 2: 
> org.apache.kafka.common.errors.DisconnectException.
> 2019-03-10T03:17:13.235Z [pool-4-thread-10] INFO  
> o.a.k.clients.FetchSessionHandler - [Consumer clientId=consumer-10, 
> groupId=hercules.sink.elastic.legacy_logs_elk_c2] Error sending fetch request 
> (sessionId=1138850248, epoch=3358) to node 3: 
> org.apache.kafka.common.errors.DisconnectException.
> 2019-03-10T03:17:13.236Z [kafka-coordinator-heartbeat-thread | 
> hercules.sink.elastic.legacy_logs_elk_c2] INFO  
> o.a.k.c.c.i.AbstractCoordinator - [Consumer clientId=consumer-4, 
> groupId=hercules.sink.elastic.legacy_logs_elk_c2] Group coordinator 
> 10.17.3.151:9092 (id: 2147483645 rack: null) is unavailable or invalid, will 
> attempt rediscovery
> 2019-03-10T03:17:13.236Z [pool-4-thread-11] INFO  
> o.a.k.clients.FetchSessionHandler - [Consumer clientId=consumer-11, 
> groupId=hercules.sink.elastic.legacy_logs_elk_c2] Error sending fetch request 
> (sessionId=1175400794, epoch=3037) to node 1: 
> org.apache.kafka.common.errors.DisconnectException.
> 2019-03-10T03:17:13.236Z [pool-4-thread-11] INFO  
> o.a.k.clients.FetchSessionHandler - [Consumer clientId=consumer-11, 
> groupId=hercules.sink.elastic.legacy_logs_elk_c2] Error sending fetch request 
> (sessionId=1276547382, epoch=3015) to node 3: 
> org.apache.kafka.common.errors.DisconnectException.
> 2019-03-10T03:17:13.237Z [pool-4-thread-4] INFO  
> o.a.k.c.c.i.AbstractCoordinator - [Consumer clientId=consumer-4, 
> groupId=hercules.sink.elastic.legacy_logs_elk_c2] Discovered group 
> coordinator 10.17.3.151:9092 (id: 2147483645 rack: null)
> 2019-03-10T03:17:13.243Z [pool-4-thread-6] INFO  
> o.a.k.c.c.i.ConsumerCoordinator - [Consumer clientId=consumer-6, 
> groupId=hercules.sink.elastic.legacy_logs_elk_c2] Revoking previously 
> assigned partitions []
> 2019-03-10T03:17:13.243Z [pool-4-thread-6] INFO  
> o.a.k.c.c.i.AbstractCoordinator - [Consumer clientId=consumer-6, 
> groupId=hercules.sink.elastic.legacy_logs_elk_c2] (Re-)joining group
> 2019-03-10T03:17:13.244Z [pool-4-thread-8] INFO  
> o.a.k.c.c.i.ConsumerCoordinator - [Consumer clientId=consumer-8, 
> groupId=hercules.sink.elastic.legacy_logs_elk_c2] Revoking previously 
> assigned partitions []
> 2019-03-10T03:17:13.244Z [pool-4-thread-8] INFO  
> o.a.k.c.c.i.AbstractCoordinator - [Consumer clientId=consumer-8, 
> groupId=hercules.sink.elastic.legacy_logs_elk_c2] (Re-)joining group
> 2019-03-10T03:17:13.244Z [pool-4-thread-1] INFO  
> o.a.k.c.c.i.ConsumerCoordinator - [Consumer clientId=consumer-1, 
> groupId=hercules.sink.elastic.legacy_logs_elk_c2] Revoking previously 
> assigned partitions []
> 2019-03-10T03:17:13.244Z [pool-4-thread-1] INFO  
> o.a.k.c.c.i.AbstractCoordinator - [Consumer clientId=consumer-1, 
> groupId=hercules.sink.elastic.legacy_logs_elk_c2] (Re-)joining group
> 2019-03-10T03:17:13.244Z [pool-4-thread-10] INFO  
> o.a.k.c.c.i.ConsumerCoordinator - [Consumer clientId=consumer-10, 
> groupId=hercules.sink.elastic.legacy_logs_elk_c2] Revoking previously 
> assigned partitions []
> 2019-03-10T03:17:13.244Z [pool-4-thread-10] INFO  
> o.a.k.c.c.i.AbstractCoordinator - [Consumer clientId=consumer-10, 
> groupId=hercules.sink.elastic.legacy_logs_elk_c2] (Re-)joining group
> 2019-03-10T03:17:13.251Z [pool-4-thread-14] INFO  
> o.a.k.c.c.i.ConsumerCoordinator - [Consumer clientId=consumer-14, 
> groupId=hercules.sink.elastic.legacy_logs_elk_c2] Revoking previously 
> assigned partitions []
> 2019-03-10T03:17:13.251Z [pool-4-thread-14] INFO  
> o.a.k.c.c.i.AbstractCoordinator - [Consumer clientId=consumer-14, 
> groupId=hercules.sink.elastic.legacy_logs_elk_c2] (Re-)joining group
> 2019-03-10T03:17:13.251Z [pool-4-thread-7] INFO  
> o.a.k.c.c.i.ConsumerCoordinator - [Consumer clientId=consumer-7, 
> groupId=hercules.sink.elastic.legacy_logs_elk_c2] Revoking previously 
> assigned partitions []
> 2019-03-10T03:17:13.251Z [pool-4-thread-7] INFO  
> o.a.k.c.c.i.AbstractCoordinator - [Consumer clientId=consumer-7, 
> groupId=hercules.sink.elastic.legacy_logs_elk_c2] (Re-)joining group
> 2019-03-10T03:17:13.251Z [pool-4-thread-5] INFO  
> o.a.k.c.c.i.ConsumerCoordinator - [Consumer clientId=consumer-5, 
> groupId=hercules.sink.elastic.legacy_logs_elk_c2] Revoking previously 
> assigned partitions []
> 2019-03-10T03:17:13.251Z [pool-4-thread-5] INFO  
> o.a.k.c.c.i.AbstractCoordinator - [Consumer clientId=consumer-5, 
> groupId=hercules.sink.elastic.legacy_logs_elk_c2] (Re-)joining group
> 2019-03-10T03:17:13.252Z [pool-4-thread-15] INFO  
> o.a.k.c.c.i.ConsumerCoordinator - [Consumer clientId=consumer-15, 
> groupId=hercules.sink.elastic.legacy_logs_elk_c2] Revoking previously 
> assigned partitions []
> 2019-03-10T03:17:13.252Z [pool-4-thread-15] INFO  
> o.a.k.c.c.i.AbstractCoordinator - [Consumer clientId=consumer-15, 
> groupId=hercules.sink.elastic.legacy_logs_elk_c2] (Re-)joining group
> 2019-03-10T03:17:13.252Z [pool-4-thread-4] INFO  
> o.a.k.c.c.i.AbstractCoordinator - [Consumer clientId=consumer-4, 
> groupId=hercules.sink.elastic.legacy_logs_elk_c2] Group coordinator 
> 10.17.3.151:9092 (id: 2147483645 rack: null) is unavailable or invalid, will 
> attempt rediscovery
> 2019-03-10T03:17:13.252Z [pool-4-thread-11] INFO  
> o.a.k.c.c.i.ConsumerCoordinator - [Consumer clientId=consumer-11, 
> groupId=hercules.sink.elastic.legacy_logs_elk_c2] Revoking previously 
> assigned partitions []
> 2019-03-10T03:17:13.252Z [pool-4-thread-16] INFO  
> o.a.k.c.c.i.ConsumerCoordinator - [Consumer clientId=consumer-16, 
> groupId=hercules.sink.elastic.legacy_logs_elk_c2] Revoking previously 
> assigned partitions []
> 2019-03-10T03:17:13.252Z [pool-4-thread-11] INFO  
> o.a.k.c.c.i.AbstractCoordinator - [Consumer clientId=consumer-11, 
> groupId=hercules.sink.elastic.legacy_logs_elk_c2] (Re-)joining group
> 2019-03-10T03:17:13.252Z [pool-4-thread-16] INFO  
> o.a.k.c.c.i.AbstractCoordinator - [Consumer clientId=consumer-16, 
> groupId=hercules.sink.elastic.legacy_logs_elk_c2] (Re-)joining group
> 2019-03-10T03:17:13.252Z [pool-4-thread-9] INFO  
> o.a.k.c.c.i.ConsumerCoordinator - [Consumer clientId=consumer-9, 
> groupId=hercules.sink.elastic.legacy_logs_elk_c2] Revoking previously 
> assigned partitions []
> 2019-03-10T03:17:13.252Z [pool-4-thread-3] INFO  
> o.a.k.c.c.i.ConsumerCoordinator - [Consumer clientId=consumer-3, 
> groupId=hercules.sink.elastic.legacy_logs_elk_c2] Revoking previously 
> assigned partitions []
> 2019-03-10T03:17:13.252Z [pool-4-thread-9] INFO  
> o.a.k.c.c.i.AbstractCoordinator - [Consumer clientId=consumer-9, 
> groupId=hercules.sink.elastic.legacy_logs_elk_c2] (Re-)joining group
> 2019-03-10T03:17:13.252Z [pool-4-thread-3] INFO  
> o.a.k.c.c.i.AbstractCoordinator - [Consumer clientId=consumer-3, 
> groupId=hercules.sink.elastic.legacy_logs_elk_c2] (Re-)joining group
> 2019-03-10T03:17:13.252Z [pool-4-thread-4] INFO  
> o.a.k.c.c.i.AbstractCoordinator - [Consumer clientId=consumer-4, 
> groupId=hercules.sink.elastic.legacy_logs_elk_c2] Discovered group 
> coordinator 10.17.3.151:9092 (id: 2147483645 rack: null)
> 2019-03-10T03:17:13.253Z [pool-4-thread-4] INFO  
> o.a.k.c.c.i.AbstractCoordinator - [Consumer clientId=consumer-4, 
> groupId=hercules.sink.elastic.legacy_logs_elk_c2] Group coordinator 
> 10.17.3.151:9092 (id: 2147483645 rack: null) is unavailable or invalid, will 
> attempt rediscovery
> 2019-03-10T03:17:13.255Z [pool-4-thread-13] INFO  
> o.a.k.c.c.i.ConsumerCoordinator - [Consumer clientId=consumer-13, 
> groupId=hercules.sink.elastic.legacy_logs_elk_c2] Revoking previously 
> assigned partitions []
> 2019-03-10T03:17:13.255Z [pool-4-thread-13] INFO  
> o.a.k.c.c.i.AbstractCoordinator - [Consumer clientId=consumer-13, 
> groupId=hercules.sink.elastic.legacy_logs_elk_c2] (Re-)joining group
> 2019-03-10T03:17:13.255Z [pool-4-thread-12] INFO  
> o.a.k.c.c.i.ConsumerCoordinator - [Consumer clientId=consumer-12, 
> groupId=hercules.sink.elastic.legacy_logs_elk_c2] Revoking previously 
> assigned partitions []
> 2019-03-10T03:17:13.255Z [pool-4-thread-2] INFO  
> o.a.k.c.c.i.ConsumerCoordinator - [Consumer clientId=consumer-2, 
> groupId=hercules.sink.elastic.legacy_logs_elk_c2] Revoking previously 
> assigned partitions []
> 2019-03-10T03:17:13.255Z [pool-4-thread-12] INFO  
> o.a.k.c.c.i.AbstractCoordinator - [Consumer clientId=consumer-12, 
> groupId=hercules.sink.elastic.legacy_logs_elk_c2] (Re-)joining group
> 2019-03-10T03:17:13.255Z [pool-4-thread-2] INFO  
> o.a.k.c.c.i.AbstractCoordinator - [Consumer clientId=consumer-2, 
> groupId=hercules.sink.elastic.legacy_logs_elk_c2] (Re-)joining group
> 2019-03-10T03:17:13.354Z [pool-4-thread-4] INFO  
> o.a.k.c.c.i.AbstractCoordinator - [Consumer clientId=consumer-4, 
> groupId=hercules.sink.elastic.legacy_logs_elk_c2] Discovered group 
> coordinator 10.17.3.151:9092 (id: 2147483645 rack: null)}}
> Finally, 15 consumers successfully rejoined. But consumer with thread 
> {{pool-4-thread-4}} didn't rejoin:
> {{2019-03-10T03:17:13.355Z [pool-4-thread-4] ERROR 
> r.k.vostok.hercules.sink.SimpleSink - Unspecified exception has been acquired
> java.lang.IllegalStateException: Coordinator selected invalid assignment 
> protocol: null
>       at 
> org.apache.kafka.clients.consumer.internals.ConsumerCoordinator.onJoinComplete(ConsumerCoordinator.java:241)
>       at 
> org.apache.kafka.clients.consumer.internals.AbstractCoordinator.joinGroupIfNeeded(AbstractCoordinator.java:422)
>       at 
> org.apache.kafka.clients.consumer.internals.AbstractCoordinator.ensureActiveGroup(AbstractCoordinator.java:352)
>       at 
> org.apache.kafka.clients.consumer.internals.AbstractCoordinator.ensureActiveGroup(AbstractCoordinator.java:337)
>       at 
> org.apache.kafka.clients.consumer.internals.ConsumerCoordinator.poll(ConsumerCoordinator.java:333)
>       at 
> org.apache.kafka.clients.consumer.KafkaConsumer.updateAssignmentMetadataIfNeeded(KafkaConsumer.java:1218)
>       at 
> org.apache.kafka.clients.consumer.KafkaConsumer.poll(KafkaConsumer.java:1175)
>       at 
> org.apache.kafka.clients.consumer.KafkaConsumer.poll(KafkaConsumer.java:1154)
>       at ru.kontur.vostok.hercules.sink.Sink.poll(Sink.java:152)
>       at ru.kontur.vostok.hercules.sink.SimpleSink.run(SimpleSink.java:70)
>       at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
>       at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
>       at java.lang.Thread.run(Thread.java:748)
> 2019-03-10T03:17:13.360Z [pool-4-thread-4] ERROR 
> r.k.vostok.hercules.sink.SimpleSink - Unspecified exception has been acquired
> java.lang.IllegalStateException: Coordinator selected invalid assignment 
> protocol: null
>       at 
> org.apache.kafka.clients.consumer.internals.ConsumerCoordinator.onJoinComplete(ConsumerCoordinator.java:241)
>       at 
> org.apache.kafka.clients.consumer.internals.AbstractCoordinator.joinGroupIfNeeded(AbstractCoordinator.java:422)
>       at 
> org.apache.kafka.clients.consumer.internals.AbstractCoordinator.ensureActiveGroup(AbstractCoordinator.java:352)
>       at 
> org.apache.kafka.clients.consumer.internals.AbstractCoordinator.ensureActiveGroup(AbstractCoordinator.java:337)
>       at 
> org.apache.kafka.clients.consumer.internals.ConsumerCoordinator.poll(ConsumerCoordinator.java:333)
>       at 
> org.apache.kafka.clients.consumer.KafkaConsumer.updateAssignmentMetadataIfNeeded(KafkaConsumer.java:1218)
>       at 
> org.apache.kafka.clients.consumer.KafkaConsumer.poll(KafkaConsumer.java:1175)
>       at 
> org.apache.kafka.clients.consumer.KafkaConsumer.poll(KafkaConsumer.java:1154)
>       at ru.kontur.vostok.hercules.sink.Sink.poll(Sink.java:152)
>       at ru.kontur.vostok.hercules.sink.SimpleSink.run(SimpleSink.java:70)
>       at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
>       at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
>       at java.lang.Thread.run(Thread.java:748)}}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to