Uploaded image for project: 'Kafka'
  1. Kafka
  2. KAFKA-5156 Options for handling exceptions in streams
  3. KAFKA-4563

State transitions error PARTITIONS_REVOKED to NOT_RUNNING

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • 0.10.2.0
    • None
    • streams
    • None

    Description

      When starting and stopping streams quickly, the following exception is thrown:

      java.lang.IllegalStateException: Incorrect state transition from PARTITIONS_REVOKED to NOT_RUNNING
      at org.apache.kafka.streams.processor.internals.StreamThread.setState(StreamThread.java:164)
      at org.apache.kafka.streams.processor.internals.StreamThread.shutdown(StreamThread.java:414)
      at org.apache.kafka.streams.processor.internals.StreamThread.run(StreamThread.java:366)

      A temporary fix is to convert the exception into a warning, since clearly not all state transitions are thought through yet.

      Attachments

        Activity

          People

            enothereska Eno Thereska
            enothereska Eno Thereska
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: