Browse Source

MINOR: Log when remote fetch execution is rejected (#14350)

Log at warning level when remote fetch execution is rejected. This can be potentially useful to troubleshoot UNKNOWN_SERVER_ERROR responses for remote fetch requests.

Reviewers: Luke Chen <showuon@gmail.com>, Christo Lolov <lolovc@amazon.com>
pull/14358/head
Nikhil Ramakrishnan 1 year ago committed by GitHub
parent
commit
84c49c6a09
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      core/src/main/scala/kafka/server/ReplicaManager.scala

1
core/src/main/scala/kafka/server/ReplicaManager.scala

@ -1263,6 +1263,7 @@ class ReplicaManager(val config: KafkaConfig, @@ -1263,6 +1263,7 @@ class ReplicaManager(val config: KafkaConfig,
} catch {
case e: RejectedExecutionException =>
// Return the error if any in scheduling the remote fetch task
warn("Unable to fetch data from remote storage", e)
return Some(createLogReadResult(e))
}

Loading…
Cancel
Save