abbccdda commented on a change in pull request #8486: URL: https://github.com/apache/kafka/pull/8486#discussion_r413925987
########## File path: clients/src/main/java/org/apache/kafka/common/requests/EpochEndOffset.java ########## @@ -86,4 +84,9 @@ public boolean equals(Object o) { public int hashCode() { return Objects.hash(error, leaderEpoch, endOffset); } + + public boolean hasUndefinedEpochOrOffset() { + return this.endOffset == UNDEFINED_EPOCH_OFFSET || Review comment: I just feel this check is stronger if later we change the behavior on broker. ---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: us...@infra.apache.org