mirror of https://github.com/apache/kafka.git
KAFKA-19659: Wrong generic type for UnregisterBrokerOptions (#20490)
Fix wrong generic type for UnregisterBrokerOptions Reviewers: Andrew Schofield <aschofield@confluent.io>
This commit is contained in:
parent
29ce96151c
commit
af03353f71
|
@ -20,5 +20,5 @@ package org.apache.kafka.clients.admin;
|
||||||
/**
|
/**
|
||||||
* Options for {@link Admin#unregisterBroker(int, UnregisterBrokerOptions)}.
|
* Options for {@link Admin#unregisterBroker(int, UnregisterBrokerOptions)}.
|
||||||
*/
|
*/
|
||||||
public class UnregisterBrokerOptions extends AbstractOptions<UpdateFeaturesOptions> {
|
public class UnregisterBrokerOptions extends AbstractOptions<UnregisterBrokerOptions> {
|
||||||
}
|
}
|
||||||
|
|
|
@ -9952,9 +9952,7 @@ public class KafkaAdminClientTest {
|
||||||
env.kafkaClient().setNodeApiVersions(
|
env.kafkaClient().setNodeApiVersions(
|
||||||
NodeApiVersions.create(ApiKeys.UNREGISTER_BROKER.id, (short) 0, (short) 0));
|
NodeApiVersions.create(ApiKeys.UNREGISTER_BROKER.id, (short) 0, (short) 0));
|
||||||
|
|
||||||
UnregisterBrokerOptions options = new UnregisterBrokerOptions();
|
UnregisterBrokerResult result = env.adminClient().unregisterBroker(nodeId, new UnregisterBrokerOptions().timeoutMs(10));
|
||||||
options.timeoutMs = 10;
|
|
||||||
UnregisterBrokerResult result = env.adminClient().unregisterBroker(nodeId, options);
|
|
||||||
|
|
||||||
// Validate response
|
// Validate response
|
||||||
assertNotNull(result.all());
|
assertNotNull(result.all());
|
||||||
|
|
Loading…
Reference in New Issue