kafka-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bbej...@apache.org
Subject [kafka] 01/02: KAFKA-8861 Fix flaky RegexSourceIntegrationTest.testMultipleConsumersCanReadFromPartitionedTopic (#7281)
Date Wed, 04 Sep 2019 15:21:45 GMT
This is an automated email from the ASF dual-hosted git repository.

bbejeck pushed a commit to branch 2.1
in repository https://gitbox.apache.org/repos/asf/kafka.git

commit 94f5aadc3150e15f1fe2415414287fc08f19b88c
Author: Chia-Ping Tsai <chia7712@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 <mjsax@apache.org>,  Bill Bejeck <bbejeck@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 a3ab289..b4bad0f 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
@@ -337,8 +337,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


Mime
View raw message