Uploaded image for project: 'Kafka'
  1. Kafka
  2. KAFKA-6459

By (Re-)joining group StreamThread got NPE

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 1.0.0
    • 1.0.1
    • streams
    • None

    Description

      We encouteres more instabilities in Kafka Streams.

      By (Re-)joining group StreamThread got NPE.

      
      2018-01-18 09:48:44 INFO  AbstractCoordinator:336 - [Consumer clientId=kafka-endpoint-c1e67c77-c0c8-413d-b0f2-31f22bdeae05-StreamThread-1-consumer, groupId=kafka-endpoint] (Re-)joining group
      2018-01-18 09:48:44 INFO  StreamPartitionAssignor:341 - stream-thread [kafka-endpoint-c1e67c77-c0c8-413d-b0f2-31f22bdeae05-StreamThread-1-consumer] Assigned tasks to clients as \{c1e67c77-c0c8-413d-b0f2-31f22bdeae05=[activeTasks: ([0_0, 0_1, 0_2, 0_3, 0_4, 0_5, 0_6, 0_7, 0_8, 0_9]) standbyTasks: ([]) assignedTasks: ([0_0, 0_1, 0_2, 0_3, 0_4, 0_5, 0_6, 0_7, 0_8, 0_9]) prevActiveTasks: ([0_0, 0_1, 0_2, 0_3, 0_4]) prevAssignedTasks: ([0_0, 0_1, 0_2, 0_3, 0_4]) capacity: 1]}.
      2018-01-18 09:48:44 INFO  AbstractCoordinator:341 - [Consumer clientId=kafka-endpoint-c1e67c77-c0c8-413d-b0f2-31f22bdeae05-StreamThread-1-consumer, groupId=kafka-endpoint] Successfully joined group with generation 3950
      2018-01-18 09:48:44 INFO  ConsumerCoordinator:341 - [Consumer clientId=kafka-endpoint-c1e67c77-c0c8-413d-b0f2-31f22bdeae05-StreamThread-1-consumer, groupId=kafka-endpoint] Setting newly assigned partitions [my_internal_topic-6, my_internal_topic-5, my_internal_topic-8, my_internal_topic-7, my_internal_topic-9, my_internal_topic-0, my_internal_topic-2, my_internal_topic-1, my_internal_topic-4, my_internal_topic-3]
      2018-01-18 09:48:44 INFO  StreamThread:346 - stream-thread [kafka-endpoint-c1e67c77-c0c8-413d-b0f2-31f22bdeae05-StreamThread-1] State transition from PARTITIONS_REVOKED to PARTITIONS_ASSIGNED
      2018-01-18 09:48:44 INFO  StreamThread:351 - stream-thread [kafka-endpoint-c1e67c77-c0c8-413d-b0f2-31f22bdeae05-StreamThread-1] partition assignment took 149 ms.
              current active tasks: [0_0, 0_1, 0_2, 0_3, 0_4, 0_5, 0_6, 0_7, 0_8, 0_9]
              current standby tasks: []
              previous active tasks: [0_0, 0_1, 0_2, 0_3, 0_4]
      
      2018-01-18 09:48:44 ERROR StreamThread:306 - stream-thread [kafka-endpoint-c1e67c77-c0c8-413d-b0f2-31f22bdeae05-StreamThread-1] Encountered the following error during processing:
      java.lang.NullPointerException: null
              at org.apache.kafka.common.network.Selector.pollSelectionKeys(Selector.java:436) ~[my-kafka-endpoint.jar:?]
              at org.apache.kafka.common.network.Selector.poll(Selector.java:395) ~[my-kafka-endpoint.jar:?]
              at org.apache.kafka.clients.NetworkClient.poll(NetworkClient.java:460) ~[my-kafka-endpoint.jar:?]
              at org.apache.kafka.clients.consumer.internals.ConsumerNetworkClient.poll(ConsumerNetworkClient.java:238) ~[my-kafka-endpoint.jar:?]
              at org.apache.kafka.clients.consumer.internals.ConsumerNetworkClient.pollNoWakeup(ConsumerNetworkClient.java:275) ~[my-kafka-endpoint.jar:?]
              at org.apache.kafka.clients.consumer.internals.AbstractCoordinator$HeartbeatThread.run(AbstractCoordinator.java:934) ~[my-kafka-endpoint.jar:?]
      2018-01-18 09:48:44 INFO  StreamThread:346 - stream-thread [kafka-endpoint-c1e67c77-c0c8-413d-b0f2-31f22bdeae05-StreamThread-1] State transition from PARTITIONS_ASSIGNED to PENDING_SHUTDOWN
      
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              habdank Seweryn Habdank-Wojewodzki
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: