srdo commented on code in PR #20141:
URL: https://github.com/apache/kafka/pull/20141#discussion_r2515197721
##########
core/src/main/scala/kafka/server/ReplicaManager.scala:
##########
@@ -1109,10 +1109,12 @@ class ReplicaManager(val config: KafkaConfig,
} catch {
case e@ (_: UnknownTopicOrPartitionException |
_: NotLeaderOrFollowerException |
- _: OffsetOutOfRangeException |
_: PolicyViolationException |
_: KafkaStorageException) =>
(topicPartition, LogDeleteRecordsResult(-1L, -1L, Some(e)))
+ case e: OffsetOutOfRangeException =>
+ debug("Error processing delete records operation on partition %s.
%s".format(topicPartition, e.getMessage))
Review Comment:
This was deliberate, I figured that the error message is interesting since
it describes why the error occurred, and which offsets were involved, but the
stack trace probably isn't.
Do you prefer this with the stack trace, I'm happy to change it?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]