Skip to content

Commit

Permalink
MINOR: Log when remote fetch execution is rejected (apache#14350)
Browse files Browse the repository at this point in the history
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 <[email protected]>, Christo Lolov <[email protected]>
  • Loading branch information
nikramakrishnan authored Sep 8, 2023
1 parent 17862ff commit 84c49c6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions core/src/main/scala/kafka/server/ReplicaManager.scala
Original file line number Diff line number Diff line change
Expand Up @@ -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))
}

Expand Down

0 comments on commit 84c49c6

Please sign in to comment.