forked from elastic/beats
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for Thread ID in Filebeat Kafka module (elastic#19463)
Closes elastic#18164
- Loading branch information
1 parent
f1f7d18
commit cb7fe4c
Showing
9 changed files
with
83 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
[2020-04-23 00:28:21,796] [WARN ] [kafka-request-handler-7] [state.change.logger] - [Broker id=1] Ignoring LeaderAndIsr request from controller 1 with correlation id 1 epoch 27 for partition xxx.xxx.inventory.test.1-0-2 since its associated leader epoch 5 is not higher than the current leader epoch 5 | ||
[2020-01-20 01:32:00,705] [ERROR] [controller-event-thread] [state.change.logger] - [Controller id=1 epoch=25] Controller 1 epoch 25 failed to change state for partition xxx.xxx.na.och.aud.1-0-2 from OfflinePartition to OnlinePartition | ||
kafka.common.StateChangeFailedException: Failed to elect leader for partition xxx.xxx.na.och.aud.1-0-2 under strategy OfflinePartitionLeaderElectionStrategy | ||
at kafka.controller.PartitionStateMachine.$anonfun$doElectLeaderForPartitions$9(PartitionStateMachine.scala:390) | ||
at scala.collection.mutable.ResizableArray.foreach(ResizableArray.scala:62) | ||
at scala.collection.mutable.ResizableArray.foreach$(ResizableArray.scala:55) | ||
at scala.collection.mutable.ArrayBuffer.foreach(ArrayBuffer.scala:49) | ||
at kafka.controller.PartitionStateMachine.doElectLeaderForPartitions(PartitionStateMachine.scala:388) | ||
at kafka.controller.PartitionStateMachine.electLeaderForPartitions(PartitionStateMachine.scala:315) | ||
at kafka.controller.PartitionStateMachine.doHandleStateChanges(PartitionStateMachine.scala:225) | ||
at kafka.controller.PartitionStateMachine.handleStateChanges(PartitionStateMachine.scala:141) | ||
at kafka.controller.PartitionStateMachine.triggerOnlinePartitionStateChange(PartitionStateMachine.scala:123) | ||
at kafka.controller.PartitionStateMachine.triggerOnlinePartitionStateChange(PartitionStateMachine.scala:109) | ||
at kafka.controller.PartitionStateMachine.startup(PartitionStateMachine.scala:66) | ||
at kafka.controller.KafkaController.onControllerFailover(KafkaController.scala:266) | ||
at kafka.controller.KafkaController.kafka$controller$KafkaController$$elect(KafkaController.scala:1271) | ||
at kafka.controller.KafkaController$Startup$.process(KafkaController.scala:1184) | ||
at kafka.controller.ControllerEventManager$ControllerEventThread.$anonfun$doWork$1(ControllerEventManager.scala:94) | ||
at scala.runtime.java8.JFunction0$mcV$sp.apply(JFunction0$mcV$sp.java:23) | ||
at kafka.metrics.KafkaTimer.time(KafkaTimer.scala:31) | ||
at kafka.controller.ControllerEventManager$ControllerEventThread.doWork(ControllerEventManager.scala:94) | ||
at kafka.utils.ShutdownableThread.run(ShutdownableThread.scala:82) | ||
|
39 changes: 39 additions & 0 deletions
39
filebeat/module/kafka/log/test/state-change-2.2.2.log-expected.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
[ | ||
{ | ||
"@timestamp": "2020-04-23T00:28:21.796-02:00", | ||
"event.dataset": "kafka.log", | ||
"event.kind": "event", | ||
"event.module": "kafka", | ||
"event.timezone": "-02:00", | ||
"event.type": "info", | ||
"fileset.name": "log", | ||
"input.type": "log", | ||
"kafka.log.class": "state.change.logger", | ||
"kafka.log.component": "Broker id=1", | ||
"kafka.log.thread": "kafka-request-handler-7", | ||
"log.level": "WARN", | ||
"log.offset": 0, | ||
"message": "Ignoring LeaderAndIsr request from controller 1 with correlation id 1 epoch 27 for partition xxx.xxx.inventory.test.1-0-2 since its associated leader epoch 5 is not higher than the current leader epoch 5 ", | ||
"service.type": "kafka" | ||
}, | ||
{ | ||
"@timestamp": "2020-01-20T01:32:00.705-02:00", | ||
"event.dataset": "kafka.log", | ||
"event.kind": "event", | ||
"event.module": "kafka", | ||
"event.timezone": "-02:00", | ||
"event.type": "error", | ||
"fileset.name": "log", | ||
"input.type": "log", | ||
"kafka.log.class": "state.change.logger", | ||
"kafka.log.component": "Controller id=1 epoch=25", | ||
"kafka.log.thread": "controller-event-thread", | ||
"log.flags": [ | ||
"multiline" | ||
], | ||
"log.level": "ERROR", | ||
"log.offset": 303, | ||
"message": "Controller 1 epoch 25 failed to change state for partition xxx.xxx.na.och.aud.1-0-2 from OfflinePartition to OnlinePartition", | ||
"service.type": "kafka" | ||
} | ||
] |