Skip to content

Commit

Permalink
KAFKA-2822: DescribeConsumerGroup now returns empty list for non-exis…
Browse files Browse the repository at this point in the history
…tent group.

…tent group, it used to throw IllegalArgumentException

Author: Ashish Singh <[email protected]>

Reviewers: Jason Gustafson, Guozhang Wang

Closes apache#515 from SinghAsDev/KAFKA-2822
  • Loading branch information
Ashish Singh authored and guozhangwang committed Nov 12, 2015
1 parent 1408c67 commit 28d71ce
Showing 1 changed file with 1 addition and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -113,12 +113,6 @@ class AdminClientTest extends IntegrationTestHarness with Logging {
@Test
def testDescribeConsumerGroupForNonExistentGroup() {
val nonExistentGroup = "non" + groupId
try {
client.describeConsumerGroup(nonExistentGroup)
fail("Should have failed for non existent group.")
} catch {
case ex: IllegalArgumentException => // Pass
case _: Throwable => fail("Should have failed for non existent group with IllegalArgumentException.")
}
assertTrue("Expected empty ConsumerSummary list", client.describeConsumerGroup(nonExistentGroup).isEmpty)
}
}

0 comments on commit 28d71ce

Please sign in to comment.