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:
Nick Guo 2024-12-13 03:57:14 +08:00 committed by GitHub
parent 7a64623e40
commit 671cbedc1b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -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 {}-{}: {}",