Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
removing unnecessary comment, default value
  • Loading branch information
Jason White committed Mar 2, 2016
commit a7a08771eb9e7fa9d15ff739c0da89fd193f8ed3
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ private[kafka] class KafkaTestUtils extends Logging {
}

/** Create a Kafka topic and wait until it is propagated to the whole cluster */
def createTopic(topic: String, partitions: Int = 1): Unit = {
def createTopic(topic: String, partitions: Int): Unit = {
AdminUtils.createTopic(zkClient, topic, partitions, 1)
// wait until metadata is propagated
(0 until partitions).foreach { p => waitUntilMetadataIsPropagated(topic, p) }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -462,8 +462,6 @@ class DirectKafkaStreamSuite
val batchIntervalMilliseconds = 100

val sparkConf = new SparkConf()
// Safe, even with streaming, because we're using the direct API.
// Using 1 core is useful to make the test more predictable.
.setMaster("local[1]")
.setAppName(this.getClass.getSimpleName)
.set("spark.streaming.kafka.maxRatePerPartition", "100")
Expand Down