|
|
@ -979,6 +979,8 @@ class AdminClientIntegrationTest extends IntegrationTestHarness with Logging { |
|
|
|
val testNumPartitions = 2 |
|
|
|
val testNumPartitions = 2 |
|
|
|
client.createTopics(Collections.singleton( |
|
|
|
client.createTopics(Collections.singleton( |
|
|
|
new NewTopic(testTopicName, testNumPartitions, 1))).all().get() |
|
|
|
new NewTopic(testTopicName, testNumPartitions, 1))).all().get() |
|
|
|
|
|
|
|
waitForTopics(client, List(testTopicName), List()) |
|
|
|
|
|
|
|
|
|
|
|
val producer = createNewProducer |
|
|
|
val producer = createNewProducer |
|
|
|
try { |
|
|
|
try { |
|
|
|
producer.send(new ProducerRecord(testTopicName, 0, null, null)).get() |
|
|
|
producer.send(new ProducerRecord(testTopicName, 0, null, null)).get() |
|
|
@ -1044,7 +1046,6 @@ class AdminClientIntegrationTest extends IntegrationTestHarness with Logging { |
|
|
|
assertEquals(2, result.all().get().size()) |
|
|
|
assertEquals(2, result.all().get().size()) |
|
|
|
|
|
|
|
|
|
|
|
// Test listConsumerGroupOffsets |
|
|
|
// Test listConsumerGroupOffsets |
|
|
|
val parts = client.listConsumerGroupOffsets(testGroupId).partitionsToOffsetAndMetadata().get() |
|
|
|
|
|
|
|
TestUtils.waitUntilTrue(() => { |
|
|
|
TestUtils.waitUntilTrue(() => { |
|
|
|
val parts = client.listConsumerGroupOffsets(testGroupId).partitionsToOffsetAndMetadata().get() |
|
|
|
val parts = client.listConsumerGroupOffsets(testGroupId).partitionsToOffsetAndMetadata().get() |
|
|
|
val part = new TopicPartition(testTopicName, 0) |
|
|
|
val part = new TopicPartition(testTopicName, 0) |
|
|
|