This is an automated email from the ASF dual-hosted git repository. bbejeck pushed a commit to branch 2.0 in repository https://gitbox.apache.org/repos/asf/kafka.git
The following commit(s) were added to refs/heads/2.0 by this push: new e6eda88 KAFKA-8861 Fix flaky RegexSourceIntegrationTest.testMultipleConsumersCanReadFromPartitionedTopic (#7281) e6eda88 is described below commit e6eda88180b843020725082a9bcfd08985e154c0 Author: Chia-Ping Tsai <chia7...@gmail.com> AuthorDate: Wed Sep 4 22:13:56 2019 +0800 KAFKA-8861 Fix flaky RegexSourceIntegrationTest.testMultipleConsumersCanReadFromPartitionedTopic (#7281) similar to https://issues.apache.org/jira/browse/KAFKA-8011 and https://issues.apache.org/jira/browse/KAFKA-8026 Reviewers: Matthias J. Sax <mj...@apache.org>, Bill Bejeck <bbej...@gmail.com> --- .../apache/kafka/streams/integration/RegexSourceIntegrationTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/streams/src/test/java/org/apache/kafka/streams/integration/RegexSourceIntegrationTest.java b/streams/src/test/java/org/apache/kafka/streams/integration/RegexSourceIntegrationTest.java index 0c6f21e..7090630 100644 --- a/streams/src/test/java/org/apache/kafka/streams/integration/RegexSourceIntegrationTest.java +++ b/streams/src/test/java/org/apache/kafka/streams/integration/RegexSourceIntegrationTest.java @@ -330,8 +330,8 @@ public class RegexSourceIntegrationTest { partitionedStreamLeader.to(DEFAULT_OUTPUT_TOPIC, Produced.with(stringSerde, stringSerde)); partitionedStreamFollower.to(DEFAULT_OUTPUT_TOPIC, Produced.with(stringSerde, stringSerde)); - final List<String> leaderAssignment = new ArrayList<>(); - final List<String> followerAssignment = new ArrayList<>(); + final List<String> leaderAssignment = new CopyOnWriteArrayList<>(); + final List<String> followerAssignment = new CopyOnWriteArrayList<>(); partitionedStreamsLeader = new KafkaStreams(builderLeader.build(), streamsConfiguration, new DefaultKafkaClientSupplier() { @Override