aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTathagata Das <tathagata.das1565@gmail.com>2015-02-03 13:46:02 -0800
committerTathagata Das <tathagata.das1565@gmail.com>2015-02-03 13:46:13 -0800
commitd644bd96a7a27081d22e405ad923655f05bbb1d0 (patch)
tree81f1924055ec4ce30ffe953a1876e2c59ed4ba96
parent6e244cf4eaa584fe1cee5297fb52307e0c92e1b0 (diff)
downloadspark-d644bd96a7a27081d22e405ad923655f05bbb1d0.tar.gz
spark-d644bd96a7a27081d22e405ad923655f05bbb1d0.tar.bz2
spark-d644bd96a7a27081d22e405ad923655f05bbb1d0.zip
[SPARK-5153][Streaming][Test] Increased timeout to deal with flaky KafkaStreamSuite
Timeout increased to allow overloaded Jenkins to cope with delay in topic creation. Author: Tathagata Das <tathagata.das1565@gmail.com> Closes #4342 from tdas/SPARK-5153 and squashes the following commits: dc42762 [Tathagata Das] Increased timeout to deal with delays in overloaded Jenkins. (cherry picked from commit 681f9df47ff40f7b0d9175d835e9758d33a13a06) Signed-off-by: Tathagata Das <tathagata.das1565@gmail.com>
-rw-r--r--external/kafka/src/test/scala/org/apache/spark/streaming/kafka/KafkaStreamSuite.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/external/kafka/src/test/scala/org/apache/spark/streaming/kafka/KafkaStreamSuite.scala b/external/kafka/src/test/scala/org/apache/spark/streaming/kafka/KafkaStreamSuite.scala
index b19c053ebf..0817c56d8f 100644
--- a/external/kafka/src/test/scala/org/apache/spark/streaming/kafka/KafkaStreamSuite.scala
+++ b/external/kafka/src/test/scala/org/apache/spark/streaming/kafka/KafkaStreamSuite.scala
@@ -164,7 +164,7 @@ abstract class KafkaStreamSuiteBase extends FunSuite with Eventually with Loggin
}
private def waitUntilMetadataIsPropagated(topic: String, partition: Int) {
- eventually(timeout(1000 milliseconds), interval(100 milliseconds)) {
+ eventually(timeout(10000 milliseconds), interval(100 milliseconds)) {
assert(
server.apis.leaderCache.keySet.contains(TopicAndPartition(topic, partition)),
s"Partition [$topic, $partition] metadata not propagated after timeout"