Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion core/src/main/scala/kafka/server/AlterIsrManager.scala
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ object AlterIsrManager {
time = time,
metrics = metrics,
config = config,
channelName = "alterIsrChannel",
channelName = "alterIsr",
threadNamePrefix = threadNamePrefix,
retryTimeoutMs = Long.MaxValue
)
Expand Down
5 changes: 3 additions & 2 deletions core/src/main/scala/kafka/server/BrokerServer.scala
Original file line number Diff line number Diff line change
Expand Up @@ -186,10 +186,11 @@ class BrokerServer(
time,
metrics,
config,
channelName = "controllerForwardingChannel",
channelName = "forwarding",
threadNamePrefix,
retryTimeoutMs = 60000
)
clientToControllerChannelManager.start()
forwardingManager = new ForwardingManagerImpl(clientToControllerChannelManager)

val apiVersionManager = ApiVersionManager(
Expand All @@ -211,7 +212,7 @@ class BrokerServer(
time,
metrics,
config,
channelName = "alterisr",
channelName = "alterIsr",
threadNamePrefix,
retryTimeoutMs = Long.MaxValue
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ class BrokerToControllerChannelManagerImpl(
threadNamePrefix: Option[String],
retryTimeoutMs: Long
) extends BrokerToControllerChannelManager with Logging {
private val logContext = new LogContext(s"[broker-${config.brokerId}-to-controller] ")
private val logContext = new LogContext(s"[BrokerToControllerChannelManager broker=${config.brokerId} name=$channelName] ")
Comment thread
mumrah marked this conversation as resolved.
private val manualMetadataUpdater = new ManualMetadataUpdater()
private val apiVersions = new ApiVersions()
private val currentNodeApiVersions = NodeApiVersions.create()
Expand Down Expand Up @@ -304,6 +304,9 @@ class BrokerToControllerRequestThread(
}

def enqueue(request: BrokerToControllerQueueItem): Unit = {
if (!this.isAlive) {
Comment thread
mumrah marked this conversation as resolved.
Outdated
throw new IllegalStateException("Cannot enqueue a request if the request thread is not running")
}
requestQueue.add(request)
if (activeControllerAddress().isDefined) {
wakeup()
Expand Down
2 changes: 1 addition & 1 deletion core/src/main/scala/kafka/server/KafkaServer.scala
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ class KafkaServer(
time = time,
metrics = metrics,
config = config,
channelName = "controllerForwardingChannel",
channelName = "forwarding",
threadNamePrefix = threadNamePrefix,
retryTimeoutMs = config.requestTimeoutMs.longValue)
brokerToControllerManager.start()
Expand Down