This is an automated email from the ASF dual-hosted git repository. bbejeck pushed a commit to branch 2.3 in repository https://gitbox.apache.org/repos/asf/kafka.git
The following commit(s) were added to refs/heads/2.3 by this push: new c7b4595 KAFKA-8861 Fix flaky RegexSourceIntegrationTest.testMultipleConsumersCanReadFromPartitionedTopic (#7281) c7b4595 is described below commit c7b4595f3af966426b4d46216a7ba893a3c86de1 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 f74487b..89bb47a 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 @@ -311,8 +311,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