mirror of https://github.com/apache/kafka.git
MINOR: Fix typo and docs (#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 <brandboat@gmail.com>, Lan Ding <isDing_L@163.com>, Ken Huang <s7133700@gmail.com>, TengYao Chi <kitingiao@gmail.com>, Chia-Ping Tsai <chia7712@gmail.com>, PoAn Yang <payang@apache.org>
This commit is contained in:
parent
656242775c
commit
38c3a411e9
|
@ -18,7 +18,6 @@ package org.apache.kafka.clients.consumer;
|
|||
|
||||
import org.apache.kafka.common.TopicPartition;
|
||||
|
||||
import java.time.Duration;
|
||||
import java.util.Collection;
|
||||
|
||||
/**
|
||||
|
@ -121,7 +120,7 @@ public interface ConsumerRebalanceListener {
|
|||
/**
|
||||
* A callback method the user can implement to provide handling of offset commits to a customized store.
|
||||
* This method will be called during a rebalance operation when the consumer has to give up some partitions.
|
||||
* It can also be called when consumer is being closed ({@link KafkaConsumer#close(Duration)})
|
||||
* It can also be called when consumer is being closed ({@link KafkaConsumer#close(CloseOptions option)})
|
||||
* or is unsubscribing ({@link KafkaConsumer#unsubscribe()}).
|
||||
* It is recommended that offsets should be committed in this callback to either Kafka or a
|
||||
* custom offset store to prevent duplicate data.
|
||||
|
|
|
@ -27,7 +27,7 @@
|
|||
// the request is now relevant. Partitions will be processed in the order
|
||||
// they appear in the request.
|
||||
//
|
||||
// Version 4 adds IsolationLevel. Starting in version 4, the reqestor must be
|
||||
// Version 4 adds IsolationLevel. Starting in version 4, the requestor must be
|
||||
// able to handle Kafka log message format version 2.
|
||||
//
|
||||
// Version 5 adds LogStartOffset to indicate the earliest available offset of
|
||||
|
|
|
@ -3145,7 +3145,7 @@ public final class KafkaRaftClient<T> implements RaftClient<T> {
|
|||
return 0L;
|
||||
}
|
||||
|
||||
long timeUtilVoterChangeExpires = state.maybeExpirePendingOperation(currentTimeMs);
|
||||
long timeUntilVoterChangeExpires = state.maybeExpirePendingOperation(currentTimeMs);
|
||||
|
||||
long timeUntilFlush = maybeAppendBatches(
|
||||
state,
|
||||
|
@ -3163,7 +3163,7 @@ public final class KafkaRaftClient<T> implements RaftClient<T> {
|
|||
timeUntilNextBeginQuorumSend,
|
||||
Math.min(
|
||||
timeUntilCheckQuorumExpires,
|
||||
timeUtilVoterChangeExpires
|
||||
timeUntilVoterChangeExpires
|
||||
)
|
||||
)
|
||||
);
|
||||
|
|
Loading…
Reference in New Issue