You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "Ksolves India Limited (Jira)" <ji...@apache.org> on 2025/09/11 10:09:00 UTC
[jira] [Commented] (KAFKA-19492) ReplicaManager.deleteRecordsOnLocalLog should debug log the exception message when OffsetOutOfRangeException occurs
[ https://issues.apache.org/jira/browse/KAFKA-19492?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18019548#comment-18019548 ]
Ksolves India Limited commented on KAFKA-19492:
-----------------------------------------------
[~srdo] If you are working on this, please assign it to yourself.
> ReplicaManager.deleteRecordsOnLocalLog should debug log the exception message when OffsetOutOfRangeException occurs
> -------------------------------------------------------------------------------------------------------------------
>
> Key: KAFKA-19492
> URL: https://issues.apache.org/jira/browse/KAFKA-19492
> Project: Kafka
> Issue Type: Task
> Components: core
> Affects Versions: 4.0.0
> Reporter: Stig Rohde Døssing
> Assignee: Stig Rohde Døssing
> Priority: Minor
>
> When using the admin client to delete records on a Kafka partition, the deletion may fail for a few different reasons. One of those reasons is OFFSET_OUT_OF_RANGE.
> While the code that throws OffsetOutOfRangeException already has very good exception messages, those messages are lost because deleteRecordsOnLocalLog discards them.
> This makes it hard to tell what the issue was when an admin client receives this error.
> It would be convenient if deleteRecordsOnLocalLog would debug log these messages.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)