mirror of https://github.com/apache/kafka.git
KAFKA-19496: Deflake streams admin api describe test (#20154)
This fixes the flaky `DescribeStreamsGroupTest.testDescribeMultipleStreamsGroupWithMembersAndVerboseOptions()`, which sometimes fails due to `ERROR stream-thread Missing source topics: Source topics customInputTopic2 are missing` Reviewers: Bill Bejeck <bbejeck@apache.org>
This commit is contained in:
parent
2346c0e737
commit
c058c134d2
|
@ -206,6 +206,7 @@ public class DescribeStreamsGroupTest {
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testDescribeMultipleStreamsGroupWithMembersAndVerboseOptions() throws Exception {
|
public void testDescribeMultipleStreamsGroupWithMembersAndVerboseOptions() throws Exception {
|
||||||
|
cluster.createTopic(INPUT_TOPIC_2, 1, 1);
|
||||||
KafkaStreams streams2 = new KafkaStreams(topology(INPUT_TOPIC_2, OUTPUT_TOPIC_2), streamsProp(APP_ID_2));
|
KafkaStreams streams2 = new KafkaStreams(topology(INPUT_TOPIC_2, OUTPUT_TOPIC_2), streamsProp(APP_ID_2));
|
||||||
startApplicationAndWaitUntilRunning(streams2);
|
startApplicationAndWaitUntilRunning(streams2);
|
||||||
|
|
||||||
|
@ -214,8 +215,8 @@ public class DescribeStreamsGroupTest {
|
||||||
List.of(APP_ID, "3", "0", "", "streams", "3", "", "", "ACTIVE:", "0:[0,1];", "TARGET-ACTIVE:", "0:[0,1];"),
|
List.of(APP_ID, "3", "0", "", "streams", "3", "", "", "ACTIVE:", "0:[0,1];", "TARGET-ACTIVE:", "0:[0,1];"),
|
||||||
List.of(APP_ID, "3", "0", "", "streams", "3", "", "", "ACTIVE:", "1:[0,1];", "TARGET-ACTIVE:", "1:[0,1];"));
|
List.of(APP_ID, "3", "0", "", "streams", "3", "", "", "ACTIVE:", "1:[0,1];", "TARGET-ACTIVE:", "1:[0,1];"));
|
||||||
final Set<List<String>> expectedRows2 = Set.of(
|
final Set<List<String>> expectedRows2 = Set.of(
|
||||||
List.of(APP_ID_2, "2", "0", "dont-care", "streams", "2", "", ""),
|
List.of(APP_ID_2, "3", "0", "", "streams", "3", "", "", "ACTIVE:", "1:[0];", "TARGET-ACTIVE:", "1:[0];"),
|
||||||
List.of(APP_ID_2, "2", "0", "", "streams", "2", "", ""));
|
List.of(APP_ID_2, "3", "0", "", "streams", "3", "", "", "ACTIVE:", "0:[0];", "TARGET-ACTIVE:", "0:[0];"));
|
||||||
final Map<String, Set<List<String>>> expectedRowsMap = new HashMap<>();
|
final Map<String, Set<List<String>>> expectedRowsMap = new HashMap<>();
|
||||||
expectedRowsMap.put(APP_ID, expectedRows1);
|
expectedRowsMap.put(APP_ID, expectedRows1);
|
||||||
expectedRowsMap.put(APP_ID_2, expectedRows2);
|
expectedRowsMap.put(APP_ID_2, expectedRows2);
|
||||||
|
|
Loading…
Reference in New Issue