lightweight
lightweight

Reputation: 3327

What does kafka.server:type=KafkaServer,name=BrokerState with 4 mean?

One broker shows kafka.server:type=KafkaServer,name=BrokerState mbean with the value of 4.

enter image description here

I found BrokerStates that shows values for 0, 1, 2, 3, 6, and 7. What's 4?

Upvotes: 3

Views: 2804

Answers (1)

streetturtle
streetturtle

Reputation: 5840

State 4 means RunningAsController.
But it was removed 29 Jun 2016 by this commit. And following message was added in docs:

The BrokerState "RunningAsController" (value 4) has been removed. Due to a bug, a broker would only be in this state briefly before transitioning out of it and hence the impact of the removal should be minimal. The recommended way to detect if a given broker is the controller is via the kafka.controller:type=KafkaController,name=ActiveControllerCount metric.

Upvotes: 4

Related Questions