Skip to content

Kafka Streams fails when starting multiple instances

When starting multiple instances of a Kafka Streams application, then instances seem to go into an ERROR state.

To reproduce:

  1. start an instance of your streams app
  2. wait till it has started and is working
  3. start another instance of the same app

Expected behaviour: Rebalance of partitions and continuation of processing

Current behaviour: The first instance fails and goes into an error state. The second instance starts processing.