Skip to content

Commit

Permalink
KAFKA-5137; Controlled shutdown timeout message improvement
Browse files Browse the repository at this point in the history
Provide correct config details in the log message.

Author: umesh chaudhary <[email protected]>

Reviewers: Dustin Cote <[email protected]>, Ismael Juma <[email protected]>

Closes apache#2932 from umesh9794/local
  • Loading branch information
umesh9794 authored and ijuma committed May 5, 2017
1 parent 124ddf5 commit 2448343
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/src/main/scala/kafka/server/KafkaServer.scala
Original file line number Diff line number Diff line change
Expand Up @@ -458,7 +458,7 @@ class KafkaServer(val config: KafkaConfig, time: Time = Time.SYSTEM, threadNameP
catch {
case ioe: IOException =>
ioException = true
warn("Error during controlled shutdown, possibly because leader movement took longer than the configured socket.timeout.ms: %s".format(ioe.getMessage))
warn("Error during controlled shutdown, possibly because leader movement took longer than the configured controller.socket.timeout.ms and/or request.timeout.ms: %s".format(ioe.getMessage))
// ignore and try again
}
}
Expand Down Expand Up @@ -532,7 +532,7 @@ class KafkaServer(val config: KafkaConfig, time: Time = Time.SYSTEM, threadNameP
case ioe: java.io.IOException =>
channel.disconnect()
channel = null
warn("Error during controlled shutdown, possibly because leader movement took longer than the configured socket.timeout.ms: %s".format(ioe.getMessage))
warn("Error during controlled shutdown, possibly because leader movement took longer than the configured controller.socket.timeout.ms and/or request.timeout.ms: %s".format(ioe.getMessage))
// ignore and try again
}
}
Expand Down

0 comments on commit 2448343

Please sign in to comment.