mirror of https://github.com/apache/kafka.git
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>
This commit is contained in:
parent
17862ffaf2
commit
84c49c6a09
|
|
@ -1263,6 +1263,7 @@ class ReplicaManager(val config: KafkaConfig,
|
||||||
} catch {
|
} catch {
|
||||||
case e: RejectedExecutionException =>
|
case e: RejectedExecutionException =>
|
||||||
// Return the error if any in scheduling the remote fetch task
|
// Return the error if any in scheduling the remote fetch task
|
||||||
|
warn("Unable to fetch data from remote storage", e)
|
||||||
return Some(createLogReadResult(e))
|
return Some(createLogReadResult(e))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue