Skip to content

Commit 38c3a41

Browse files
authored
MINOR: Fix typo and docs (apache#20373)
Fix typo and docs in following. ``` clients/src/main/java/org/apache/kafka/clients/consumer/ConsumerRebalanceListener.java clients/src/main/resources/common/message/FetchRequest.json raft/src/main/java/org/apache/kafka/raft/KafkaRaftClient.java ``` Reviewers: Kuan-Po Tseng <[email protected]>, Lan Ding <[email protected]>, Ken Huang <[email protected]>, TengYao Chi <[email protected]>, Chia-Ping Tsai <[email protected]>, PoAn Yang <[email protected]>
1 parent 6562427 commit 38c3a41

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

clients/src/main/java/org/apache/kafka/clients/consumer/ConsumerRebalanceListener.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818

1919
import org.apache.kafka.common.TopicPartition;
2020

21-
import java.time.Duration;
2221
import java.util.Collection;
2322

2423
/**
@@ -121,7 +120,7 @@ public interface ConsumerRebalanceListener {
121120
/**
122121
* A callback method the user can implement to provide handling of offset commits to a customized store.
123122
* This method will be called during a rebalance operation when the consumer has to give up some partitions.
124-
* It can also be called when consumer is being closed ({@link KafkaConsumer#close(Duration)})
123+
* It can also be called when consumer is being closed ({@link KafkaConsumer#close(CloseOptions option)})
125124
* or is unsubscribing ({@link KafkaConsumer#unsubscribe()}).
126125
* It is recommended that offsets should be committed in this callback to either Kafka or a
127126
* custom offset store to prevent duplicate data.

clients/src/main/resources/common/message/FetchRequest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
// the request is now relevant. Partitions will be processed in the order
2828
// they appear in the request.
2929
//
30-
// Version 4 adds IsolationLevel. Starting in version 4, the reqestor must be
30+
// Version 4 adds IsolationLevel. Starting in version 4, the requestor must be
3131
// able to handle Kafka log message format version 2.
3232
//
3333
// Version 5 adds LogStartOffset to indicate the earliest available offset of

raft/src/main/java/org/apache/kafka/raft/KafkaRaftClient.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3145,7 +3145,7 @@ private long pollLeader(long currentTimeMs) {
31453145
return 0L;
31463146
}
31473147

3148-
long timeUtilVoterChangeExpires = state.maybeExpirePendingOperation(currentTimeMs);
3148+
long timeUntilVoterChangeExpires = state.maybeExpirePendingOperation(currentTimeMs);
31493149

31503150
long timeUntilFlush = maybeAppendBatches(
31513151
state,
@@ -3163,7 +3163,7 @@ private long pollLeader(long currentTimeMs) {
31633163
timeUntilNextBeginQuorumSend,
31643164
Math.min(
31653165
timeUntilCheckQuorumExpires,
3166-
timeUtilVoterChangeExpires
3166+
timeUntilVoterChangeExpires
31673167
)
31683168
)
31693169
);

0 commit comments

Comments
 (0)