mirror of https://github.com/apache/kafka.git
KAFKA-18219 Use INFO level instead of ERROR after successfully performing an unclean leader election (#18159)
Reviewers: Kuan-Po Tseng <brandboat@gmail.com>, Chia-Ping Tsai <chia7712@gmail.com>
This commit is contained in:
parent
7a64623e40
commit
671cbedc1b
|
@ -1767,7 +1767,7 @@ public class ReplicationControlManager {
|
||||||
ApiError result = electLeader(topic.name, topicIdPartition.partitionId(),
|
ApiError result = electLeader(topic.name, topicIdPartition.partitionId(),
|
||||||
ElectionType.UNCLEAN, records);
|
ElectionType.UNCLEAN, records);
|
||||||
if (result.error().equals(Errors.NONE)) {
|
if (result.error().equals(Errors.NONE)) {
|
||||||
log.error("Triggering unclean leader election for offline partition {}-{}.",
|
log.info("Triggering unclean leader election for offline partition {}-{}.",
|
||||||
topic.name, topicIdPartition.partitionId());
|
topic.name, topicIdPartition.partitionId());
|
||||||
} else {
|
} else {
|
||||||
log.warn("Cannot trigger unclean leader election for offline partition {}-{}: {}",
|
log.warn("Cannot trigger unclean leader election for offline partition {}-{}: {}",
|
||||||
|
|
Loading…
Reference in New Issue