[
https://issues.apache.org/jira/browse/KAFKA-6807?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17862453#comment-17862453
]
Ksolves commented on KAFKA-6807:
--------------------------------
The change you mentioned belongs to the file *StateRestorer.java* which is
removed previously ([PR
#7997|[https://github.com/apache/kafka/pull/7997/files#:~:text=public%20class%20StateRestorer%20%7B]])
Part of: *KAFKA-9113: Clean up task management and state management*
Hence, this ticket can be closed now.
> Inconsistent method name
> ------------------------
>
> Key: KAFKA-6807
> URL: https://issues.apache.org/jira/browse/KAFKA-6807
> Project: Kafka
> Issue Type: Improvement
> Reporter: KuiLIU
> Priority: Major
>
> The following method is named as "readTo", but the method will return the
> variable with lesses value. Thus, the name "readTo" is inconsistent with the
> method body code.
> Rename the method as "lesser" should be better.
> {code:java}
> private Long readTo(final long endOffset) {
> return endOffset < offsetLimit ? endOffset : offsetLimit;
> }
> {code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)