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:
Nikhil Ramakrishnan 2023-09-08 12:51:12 +01:00 committed by GitHub
parent 17862ffaf2
commit 84c49c6a09
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -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))
}