Skip to content

Commit 660f2ac

Browse files
committed
Update the state diagram
Signed-off-by: Gantigmaa Selenge <[email protected]>
1 parent 7cccffb commit 660f2ac

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

06x-new-kafka-roller.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ When a new reconciliation starts up, a context object is created for each node t
7676
Context about broker states and restart reasons:
7777
- To determine if the node is ready or performing a log recovery, we use the [Broker States](https://github.com/apache/kafka/blob/3.7/metadata/src/main/java/org/apache/kafka/metadata/BrokerState.java) metric emitted by Kafka. KafkaAgent collects and exposes this metric via REST Endpoint. This is what the current KafkaRoller does already, and the new roller will use it the same way.
7878

79-
- If Kafka pod is ready, the restart reasons is checked to determine whether it needs to be restarted The definitions of the possible restart reasons can be found via the following link: [Restart Reasons](https://github.com/strimzi/strimzi-kafka-operator/blob/0.40.0/cluster-operator/src/main/java/io/strimzi/operator/cluster/model/RestartReason.java). This is also what the current KafkaRoller roller does and the new roller will use it the same way.
79+
- If Kafka pod is ready, the restart reasons is checked to determine whether it needs to be restarted. The definitions of the possible restart reasons can be found via the following link: [Restart Reasons](https://github.com/strimzi/strimzi-kafka-operator/blob/0.40.0/cluster-operator/src/main/java/io/strimzi/operator/cluster/model/RestartReason.java). This is also what the current KafkaRoller roller does and the new roller will use it the same way.
8080

8181
#### NOT_RUNNING state
8282

@@ -231,7 +231,7 @@ The `mixed-3` node has the following context because the operator could not esta
231231
```
232232
nodeRef: mixed-3/3
233233
nodeRoles: controller,broker
234-
state: NOT_RUNNING
234+
state: NOT_READY
235235
lastTransition: 0123456
236236
restartReason: POD_UNRESPONSIVE
237237
numRestartAttempts: 0
@@ -242,7 +242,7 @@ The `mixed-3` node has the following context because the operator could not esta
242242
```
243243
nodeRef: mixed-3/3
244244
nodeRoles: controller,broker
245-
state: RESTARTED
245+
state: UNKNOWN
246246
lastTransition: 654987
247247
restartReason: POD_UNRESPONSIVE
248248
numRestartAttempts: 1

images/06x-new-roller-flow.png

41.7 KB
Loading

0 commit comments

Comments
 (0)