You are currently reviewing an older revision of this page.

Kafka fails to start after an unexpected shutdown in a High Availability environment

Symptoms

After an unexpected shutdown of Appian high availabilty servers, Kakfa fails to start up on a particular node with the following type of error seen in the kafka log:

Exiting because log truncation is not allowed for partition serviceManager.transaction.process-design-0, 
Current leader 1's latest offset 6656337 is less than replica 2's latest offset 6656340 (kafka.server.ReplicaFetcherThread)

Cause

This can happen due to the mismatch in the transaction ids logged across the Kafka nodes.

Action

  1. Make sure all Appian components are shut down.
  2. Delete the <APPIAN_HOME>/services/data/zookeeper folder on the server where Kafka is unable to start.
  3. Start Appian the normal way you do it.