Skip to content

Commit 2cc66f1

Browse files
authored
MINOR: Remove OffsetsForLeaderEpochRequest unused static field (apache#20418)
This field was used for replica_id, but after apache@51c833e, the OffsetsForLeaderEpochRequest directly relies on the internal structs generated by the automated protocol. Therefore, we can safely remove it. Reviewers: Lan Ding <[email protected]>, TengYao Chi <[email protected]>
1 parent 1fc25d8 commit 2cc66f1

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

clients/src/main/java/org/apache/kafka/common/requests/OffsetsForLeaderEpochRequest.java

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,6 @@ public class OffsetsForLeaderEpochRequest extends AbstractRequest {
3636
*/
3737
public static final int CONSUMER_REPLICA_ID = -1;
3838

39-
/**
40-
* Sentinel replica_id which indicates either a debug consumer or a replica which is using
41-
* an old version of the protocol.
42-
*/
43-
public static final int DEBUGGING_REPLICA_ID = -2;
44-
4539
private final OffsetForLeaderEpochRequestData data;
4640

4741
public static class Builder extends AbstractRequest.Builder<OffsetsForLeaderEpochRequest> {

0 commit comments

Comments
 (0)