diff --git a/clients/src/main/java/org/apache/kafka/clients/consumer/ConsumerRebalanceListener.java b/clients/src/main/java/org/apache/kafka/clients/consumer/ConsumerRebalanceListener.java index 914c0ab979f54..c49b2c8045a78 100644 --- a/clients/src/main/java/org/apache/kafka/clients/consumer/ConsumerRebalanceListener.java +++ b/clients/src/main/java/org/apache/kafka/clients/consumer/ConsumerRebalanceListener.java @@ -18,7 +18,6 @@ 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. diff --git a/clients/src/main/resources/common/message/FetchRequest.json b/clients/src/main/resources/common/message/FetchRequest.json index b4dd880faed07..9ebf86ac424c9 100644 --- a/clients/src/main/resources/common/message/FetchRequest.json +++ b/clients/src/main/resources/common/message/FetchRequest.json @@ -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 diff --git a/raft/src/main/java/org/apache/kafka/raft/KafkaRaftClient.java b/raft/src/main/java/org/apache/kafka/raft/KafkaRaftClient.java index fc4eea109fcc1..0ebabe8134bf3 100644 --- a/raft/src/main/java/org/apache/kafka/raft/KafkaRaftClient.java +++ b/raft/src/main/java/org/apache/kafka/raft/KafkaRaftClient.java @@ -3145,7 +3145,7 @@ private long pollLeader(long currentTimeMs) { return 0L; } - long timeUtilVoterChangeExpires = state.maybeExpirePendingOperation(currentTimeMs); + long timeUntilVoterChangeExpires = state.maybeExpirePendingOperation(currentTimeMs); long timeUntilFlush = maybeAppendBatches( state, @@ -3163,7 +3163,7 @@ private long pollLeader(long currentTimeMs) { timeUntilNextBeginQuorumSend, Math.min( timeUntilCheckQuorumExpires, - timeUtilVoterChangeExpires + timeUntilVoterChangeExpires ) ) );