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

    https://github.com/apache/spark/pull/6632#discussion_r32859841
  
    --- Diff: 
external/kafka/src/main/scala/org/apache/spark/streaming/kafka/KafkaUtils.scala 
---
    @@ -399,7 +418,7 @@ object KafkaUtils {
         val kc = new KafkaCluster(kafkaParams)
         val reset = kafkaParams.get("auto.offset.reset").map(_.toLowerCase)
     
    -    (for {
    +    KafkaCluster.checkErrors(for {
    --- End diff --
    
    that checkErrors method is just giving a name to the repeated pattern of 
folding over the EIther returned from the kafka cluster api, to either unwrap 
it to a result or throw an 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 [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