Github user srowen commented on a diff in the pull request:

    https://github.com/apache/spark/pull/20572#discussion_r170278078
  
    --- Diff: 
external/kafka-0-10/src/test/scala/org/apache/spark/streaming/kafka010/KafkaRDDSuite.scala
 ---
    @@ -64,6 +69,41 @@ class KafkaRDDSuite extends SparkFunSuite with 
BeforeAndAfterAll {
     
       private val preferredHosts = LocationStrategies.PreferConsistent
     
    +  private def compactLogs(topic: String, partition: Int, messages: 
Array[(String, String)]) {
    +    val mockTime = new MockTime()
    +    // LogCleaner in 0.10 version of Kafka is still expecting the old 
TopicAndPartition api
    +    val logs = new Pool[TopicAndPartition, Log]()
    +    val logDir = kafkaTestUtils.brokerLogDir
    +    val dir = new java.io.File(logDir, topic + "-" + partition)
    --- End diff --
    
    Import `File`, other `java.*` classes? maybe I'm missing a name conflict.


---

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

Reply via email to