MINOR: Fix javadoc mistake (#20281)

Fixes a couple of tiny mistakes in the javadoc for KafkaShareConsumer.

Reviewers: Chia-Ping Tsai <chia7712@gmail.com>
This commit is contained in:
Andrew Schofield 2025-07-31 19:25:04 +01:00 committed by GitHub
parent 6b96735872
commit f38359300b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 3 deletions

View File

@ -239,8 +239,8 @@ import static org.apache.kafka.common.utils.Utils.propsToMap;
* In <code>read_uncommitted</code> isolation level, the share group consumes all non-transactional and transactional * In <code>read_uncommitted</code> isolation level, the share group consumes all non-transactional and transactional
* records. The consumption is bounded by the high-water mark. * records. The consumption is bounded by the high-water mark.
* <p> * <p>
* In <code>read_committed</code> isolation level (not yet supported), the share group only consumes non-transactional * In <code>read_committed</code> isolation level, the share group only consumes non-transactional records and
* records and committed transactional records. The set of records which are eligible to become in-flight records are * committed transactional records. The set of records which are eligible to become in-flight records are
* non-transactional records and committed transactional records only. The consumption is bounded by the last stable * non-transactional records and committed transactional records only. The consumption is bounded by the last stable
* offset, so an open transaction blocks the progress of the share group with read_committed isolation level. * offset, so an open transaction blocks the progress of the share group with read_committed isolation level.
* *
@ -497,7 +497,7 @@ public class KafkaShareConsumer<K, V> implements ShareConsumer<K, V> {
* <p>This method can only be used if the consumer is using <b>explicit acknowledgement</b>. * <p>This method can only be used if the consumer is using <b>explicit acknowledgement</b>.
* *
* @param record The record to acknowledge * @param record The record to acknowledge
* @param type The acknowledgement type which indicates whether it was processed successfully * @param type The acknowledge type which indicates whether it was processed successfully
* *
* @throws IllegalStateException if the record is not waiting to be acknowledged, or the consumer is not using * @throws IllegalStateException if the record is not waiting to be acknowledged, or the consumer is not using
* explicit acknowledgement * explicit acknowledgement