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

    https://github.com/apache/spark/pull/1693#discussion_r17197213
  
    --- Diff: 
streaming/src/main/scala/org/apache/spark/streaming/scheduler/ReceiverTracker.scala
 ---
    @@ -272,7 +272,15 @@ class ReceiverTracker(ssc: StreamingContext) extends 
Logging {
     
           // Distribute the receivers and start them
           logInfo("Starting " + receivers.length + " receivers")
    -      ssc.sparkContext.runJob(tempRDD, startReceiver)
    +      try {
    +        ssc.sparkContext.runJob(tempRDD, startReceiver)
    +      } catch {
    +        case e : Throwable => 
    --- End diff --
    
    Scala uses throwable for control flow, so throwable should never be caught 
in a Scala program. Please catch Exception 


---
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 infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

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

Reply via email to