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

    https://github.com/apache/spark/pull/1820#discussion_r15955071
  
    --- Diff: 
external/flume/src/test/scala/org/apache/spark/streaming/flume/FlumePollingStreamSuite.scala
 ---
    @@ -77,16 +76,7 @@ class FlumePollingStreamSuite extends TestSuiteBase {
       }
     
       private def testFlumePolling(): Unit = {
    -    val testPort = getTestPort
    -    // Set up the streaming context and input streams
    -    val ssc = new StreamingContext(conf, batchDuration)
    -    val flumeStream: ReceiverInputDStream[SparkFlumeEvent] =
    -      FlumeUtils.createPollingStream(ssc, Seq(new 
InetSocketAddress("localhost", testPort)),
    -        StorageLevel.MEMORY_AND_DISK, eventsPerBatch, 1)
    -    val outputBuffer = new ArrayBuffer[Seq[SparkFlumeEvent]]
    -      with SynchronizedBuffer[Seq[SparkFlumeEvent]]
    -    val outputStream = new TestOutputStream(flumeStream, outputBuffer)
    -    outputStream.register()
    +    val testPort = TestUtils.findFreePort()
    --- End diff --
    
    As mentioned in the commit message - leaving it in case some other test 
wants to use it


---
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 [email protected] or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to