[ 
https://issues.apache.org/jira/browse/KAFKA-6461?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16331672#comment-16331672
 ] 

Ted Yu commented on KAFKA-6461:
-------------------------------

With the following:
{code}
diff --git 
a/streams/src/test/java/org/apache/kafka/streams/integration/TableTableJoinIntegrationTest.java
 b/streams/src/test/java/org/apache/kafka/streams/integration/TableTab
index f3eceb0..5eaabbb 100644
--- 
a/streams/src/test/java/org/apache/kafka/streams/integration/TableTableJoinIntegrationTest.java
+++ 
b/streams/src/test/java/org/apache/kafka/streams/integration/TableTableJoinIntegrationTest.java
@@ -79,7 +79,7 @@ public class TableTableJoinIntegrationTest extends 
AbstractJoinIntegrationTest {
         @Override
         public void apply(final Long key, final String value) {
             numRecordsExpected++;
-            if (value.equals(expected)) {
+            if (value != null && value.equals(expected)) {
                 boolean ret = finalResultReached.compareAndSet(false, true);

                 if (!ret) {
{code}
TableTableJoinIntegrationTest passes.

> TableTableJoinIntegrationTest is unstable if caching is enabled
> ---------------------------------------------------------------
>
>                 Key: KAFKA-6461
>                 URL: https://issues.apache.org/jira/browse/KAFKA-6461
>             Project: Kafka
>          Issue Type: Improvement
>          Components: streams, unit tests
>            Reporter: Matthias J. Sax
>            Assignee: Matthias J. Sax
>            Priority: Minor
>
> {noformat}
> org.apache.kafka.streams.integration.TableTableJoinIntegrationTest > 
> testLeftInner[caching enabled = true] FAILED
> 20:41:05     java.lang.AssertionError: Condition not met within timeout 
> 15000. Never received expected final result.
> 20:41:05         at 
> org.apache.kafka.test.TestUtils.waitForCondition(TestUtils.java:276)
> 20:41:05         at 
> org.apache.kafka.test.TestUtils.waitForCondition(TestUtils.java:254)
> 20:41:05         at 
> org.apache.kafka.streams.integration.AbstractJoinIntegrationTest.runTest(AbstractJoinIntegrationTest.java:248)
> 20:41:05         at 
> org.apache.kafka.streams.integration.TableTableJoinIntegrationTest.testLeftInner(TableTableJoinIntegrationTest.java:313){noformat}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to