Github user dragos commented on the pull request:

    https://github.com/apache/spark/pull/3844#issuecomment-71852913
  
    There also seems to be a race condition introduced by this test. It fails 
consistently for me (but passes if I add a `Thread.sleep(50)` inside 
`publishData`). I'll open a ticket.
    
    ```
    [info] - mqtt input stream *** FAILED *** (552 milliseconds)
    [info]   org.eclipse.paho.client.mqttv3.MqttException: Too many publishes 
in progress
    [info]   at 
org.eclipse.paho.client.mqttv3.internal.ClientState.send(ClientState.java:432)
    [info]   at 
org.eclipse.paho.client.mqttv3.internal.ClientComms.internalSend(ClientComms.java:121)
    [info]   at 
org.eclipse.paho.client.mqttv3.internal.ClientComms.sendNoWait(ClientComms.java:139)
    [info]   at 
org.eclipse.paho.client.mqttv3.MqttTopic.publish(MqttTopic.java:107)
    [info]   at 
org.apache.spark.streaming.mqtt.MQTTStreamSuite$$anonfun$publishData$1.apply(MQTTStreamSuite.scala:126)
    [info]   at 
org.apache.spark.streaming.mqtt.MQTTStreamSuite$$anonfun$publishData$1.apply(MQTTStreamSuite.scala:124)
    [info]   at scala.collection.immutable.Range.foreach(Range.scala:141)
    [info]   at 
org.apache.spark.streaming.mqtt.MQTTStreamSuite.publishData(MQTTStreamSuite.scala:124)
    [info]   at 
org.apache.spark.streaming.mqtt.MQTTStreamSuite$$anonfun$3.apply$mcV$sp(MQTTStreamSuite.scala:78)
    [info]   at 
org.apache.spark.streaming.mqtt.MQTTStreamSuite$$anonfun$3.apply(MQTTStreamSuite.scala:66)
    [info]   at 
org.apache.spark.streaming.mqtt.MQTTStreamSuite$$anonfun$3.apply(MQTTStreamSuite.scala:66)
    [info]   at 
org.scalatest.Transformer$$anonfun$apply$1.apply$mcV$sp(Transformer.scala:22)
    [info]   at org.scalatest.OutcomeOf$class.outcomeOf(OutcomeOf.scala:85)
    [info]   at org.scalatest.OutcomeOf$.outcomeOf(OutcomeOf.scala:104)
    [info]   at org.scalatest.Transformer.apply(Transformer.scala:22)
    [info]   at org.scalatest.Transformer.apply(Transformer.scala:20)
    [info]   at org.scalatest.FunSuiteLike$$anon$1.apply(FunSuiteLike.scala:166)
    [info]   at org.scalatest.Suite$class.withFixture(Suite.scala:1122)
    ```


---
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