This is an automated email from the ASF dual-hosted git repository. frankvicky pushed a commit to branch trunk in repository https://gitbox.apache.org/repos/asf/kafka.git
The following commit(s) were added to refs/heads/trunk by this push: new 2cc66f12c33 MINOR: Remove OffsetsForLeaderEpochRequest unused static field (#20418) 2cc66f12c33 is described below commit 2cc66f12c336221708afdcb1709aef01420e61ee Author: Ken Huang <s7133...@gmail.com> AuthorDate: Thu Aug 28 17:24:01 2025 +0800 MINOR: Remove OffsetsForLeaderEpochRequest unused static field (#20418) This field was used for replica_id, but after https://github.com/apache/kafka/commit/51c833e7959bd6ab7fbb043f76933456b40ecae4, the OffsetsForLeaderEpochRequest directly relies on the internal structs generated by the automated protocol. Therefore, we can safely remove it. Reviewers: Lan Ding <isdin...@163.com>, TengYao Chi <frankvi...@apache.org> --- .../apache/kafka/common/requests/OffsetsForLeaderEpochRequest.java | 6 ------ 1 file changed, 6 deletions(-) diff --git a/clients/src/main/java/org/apache/kafka/common/requests/OffsetsForLeaderEpochRequest.java b/clients/src/main/java/org/apache/kafka/common/requests/OffsetsForLeaderEpochRequest.java index 9cdfb59460c..78f7e3132c8 100644 --- a/clients/src/main/java/org/apache/kafka/common/requests/OffsetsForLeaderEpochRequest.java +++ b/clients/src/main/java/org/apache/kafka/common/requests/OffsetsForLeaderEpochRequest.java @@ -36,12 +36,6 @@ public class OffsetsForLeaderEpochRequest extends AbstractRequest { */ public static final int CONSUMER_REPLICA_ID = -1; - /** - * Sentinel replica_id which indicates either a debug consumer or a replica which is using - * an old version of the protocol. - */ - public static final int DEBUGGING_REPLICA_ID = -2; - private final OffsetForLeaderEpochRequestData data; public static class Builder extends AbstractRequest.Builder<OffsetsForLeaderEpochRequest> {