GitHub user zsxwing opened a pull request:

    https://github.com/apache/spark/pull/16109

    [SPARK-18588][Tests]Fix flaky test: 
KafkaSourceStressForDontFailOnDataLossSuite

    ## What changes were proposed in this pull request?
    
    Fixed the following failures:
    
    ```
    org.scalatest.exceptions.TestFailedDueToTimeoutException: The code passed 
to eventually never returned normally. Attempted 3745 times over 
1.0000790851666665 minutes. Last failure message: assertion failed: 
failOnDataLoss-0 not deleted after timeout.
    ```
    
    ```
    sbt.ForkMain$ForkError: 
org.apache.spark.sql.streaming.StreamingQueryException: Query query-66 
terminated with exception: null
        at 
org.apache.spark.sql.execution.streaming.StreamExecution.org$apache$spark$sql$execution$streaming$StreamExecution$$runBatches(StreamExecution.scala:252)
        at 
org.apache.spark.sql.execution.streaming.StreamExecution$$anon$1.run(StreamExecution.scala:146)
    Caused by: sbt.ForkMain$ForkError: java.lang.NullPointerException: null
        at java.util.ArrayList.addAll(ArrayList.java:577)
        at 
org.apache.kafka.clients.Metadata.getClusterForCurrentTopics(Metadata.java:257)
        at org.apache.kafka.clients.Metadata.update(Metadata.java:177)
        at 
org.apache.kafka.clients.NetworkClient$DefaultMetadataUpdater.handleResponse(NetworkClient.java:605)
        at 
org.apache.kafka.clients.NetworkClient$DefaultMetadataUpdater.maybeHandleCompletedReceive(NetworkClient.java:582)
        at 
org.apache.kafka.clients.NetworkClient.handleCompletedReceives(NetworkClient.java:450)
        at org.apache.kafka.clients.NetworkClient.poll(NetworkClient.java:269)
        at 
org.apache.kafka.clients.consumer.internals.ConsumerNetworkClient.clientPoll(ConsumerNetworkClient.java:360)
        at 
org.apache.kafka.clients.consumer.internals.ConsumerNetworkClient.poll(ConsumerNetworkClient.java:224)
        at 
org.apache.kafka.clients.consumer.internals.ConsumerNetworkClient.poll(ConsumerNetworkClient.java:192)
        at 
org.apache.kafka.clients.consumer.internals.ConsumerNetworkClient.awaitPendingRequests(ConsumerNetworkClient.java:260)
        at 
org.apache.kafka.clients.consumer.internals.AbstractCoordinator.ensureActiveGroup(AbstractCoordinator.java:222)
        at 
org.apache.kafka.clients.consumer.internals.ConsumerCoordinator.ensurePartitionAssignment(ConsumerCoordinator.java:366)
        at 
org.apache.kafka.clients.consumer.KafkaConsumer.pollOnce(KafkaConsumer.java:978)
        at 
org.apache.kafka.clients.consumer.KafkaConsumer.poll(KafkaConsumer.java:938)
        at 
    ...
    ```
    
    ## How was this patch tested?
    
    Tested in #16048 by running many times.
    


You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/zsxwing/spark fix-kafka-flaky-test

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/spark/pull/16109.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #16109
    
----
commit 0901a65fadc7053bac325552bd1822108a246e75
Author: Shixiong Zhu <shixi...@databricks.com>
Date:   2016-11-29T01:02:58Z

    Fix flaky test: KafkaSourceStressForDontFailOnDataLossSuite

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to