Skip to content

Conversation

@zsxwing
Copy link
Member

@zsxwing zsxwing commented May 24, 2016

What changes were proposed in this pull request?

JavaKafkaStreamSuite.testKafkaStream assumes when sent.size == result.size, the contents of sent and result should be same. However, that's not true. The content of result may not be the final content.

This PR modified the test to always retry the assertions even if the contents of sent and result are not same.

Here is the failure in Jenkins: http://spark-tests.appspot.com/tests/org.apache.spark.streaming.kafka.JavaKafkaStreamSuite/testKafkaStream

How was this patch tested?

Jenkins unit tests.

@SparkQA
Copy link

SparkQA commented May 24, 2016

Test build #59216 has finished for PR 13281 at commit b9f5fae.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@zsxwing
Copy link
Member Author

zsxwing commented May 24, 2016

cc @jerryshao since you wrote this test

@jerryshao
Copy link
Contributor

Thanks for the fix, LGTM :)

@zsxwing
Copy link
Member Author

zsxwing commented May 25, 2016

Thanks for reviewing. Merging to master / 2.0.

@asfgit asfgit closed this in c9c1c0e May 25, 2016
asfgit pushed a commit that referenced this pull request May 25, 2016
…testKafkaStream

## What changes were proposed in this pull request?

`JavaKafkaStreamSuite.testKafkaStream` assumes when `sent.size == result.size`, the contents of `sent` and `result` should be same. However, that's not true. The content of `result` may not be the final content.

This PR modified the test to always retry the assertions even if the contents of `sent` and `result` are not same.

Here is the failure in Jenkins: http://spark-tests.appspot.com/tests/org.apache.spark.streaming.kafka.JavaKafkaStreamSuite/testKafkaStream

## How was this patch tested?

Jenkins unit tests.

Author: Shixiong Zhu <shixiong@databricks.com>

Closes #13281 from zsxwing/flaky-kafka-test.

(cherry picked from commit c9c1c0e)
Signed-off-by: Shixiong Zhu <shixiong@databricks.com>
@zsxwing zsxwing deleted the flaky-kafka-test branch May 25, 2016 05:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants