Browse Source

HOTFIX: KIP-851, rename requireStable in ListConsumerGroupOffsetsOptions

pull/12389/head
Guozhang Wang 2 years ago
parent
commit
ca8135b242
  1. 2
      clients/src/main/java/org/apache/kafka/clients/admin/KafkaAdminClient.java
  2. 2
      clients/src/main/java/org/apache/kafka/clients/admin/ListConsumerGroupOffsetsOptions.java

2
clients/src/main/java/org/apache/kafka/clients/admin/KafkaAdminClient.java

@ -3404,7 +3404,7 @@ public class KafkaAdminClient extends AdminClient { @@ -3404,7 +3404,7 @@ public class KafkaAdminClient extends AdminClient {
final ListConsumerGroupOffsetsOptions options) {
SimpleAdminApiFuture<CoordinatorKey, Map<TopicPartition, OffsetAndMetadata>> future =
ListConsumerGroupOffsetsHandler.newFuture(groupId);
ListConsumerGroupOffsetsHandler handler = new ListConsumerGroupOffsetsHandler(groupId, options.topicPartitions(), options.shouldRequireStable(), logContext);
ListConsumerGroupOffsetsHandler handler = new ListConsumerGroupOffsetsHandler(groupId, options.topicPartitions(), options.requireStable(), logContext);
invokeDriver(handler, future, options.timeoutMs);
return new ListConsumerGroupOffsetsResult(future.get(CoordinatorKey.byGroupId(groupId)));
}

2
clients/src/main/java/org/apache/kafka/clients/admin/ListConsumerGroupOffsetsOptions.java

@ -60,7 +60,7 @@ public class ListConsumerGroupOffsetsOptions extends AbstractOptions<ListConsume @@ -60,7 +60,7 @@ public class ListConsumerGroupOffsetsOptions extends AbstractOptions<ListConsume
return topicPartitions;
}
public boolean shouldRequireStable() {
public boolean requireStable() {
return requireStable;
}
}

Loading…
Cancel
Save