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

    https://github.com/apache/spark/pull/4537#discussion_r29341062
  
    --- Diff: 
external/kafka/src/main/scala/org/apache/spark/streaming/kafka/KafkaCluster.scala
 ---
    @@ -220,12 +220,22 @@ class KafkaCluster(val kafkaParams: Map[String, 
String]) extends Serializable {
       // 
https://cwiki.apache.org/confluence/display/KAFKA/A+Guide+To+The+Kafka+Protocol#AGuideToTheKafkaProtocol-OffsetCommit/FetchAPI
       // scalastyle:on
     
    +  // this 0 here indicates api version, in this case the original ZK 
backed api.
    +  def defaultConsumerApiVersion: Short = 0
    +
       /** Requires Kafka >= 0.8.1.1 */
       def getConsumerOffsets(
           groupId: String,
           topicAndPartitions: Set[TopicAndPartition]
    +    ): Either[Err, Map[TopicAndPartition, Long]] =
    +    getConsumerOffsets(groupId, topicAndPartitions, 
defaultConsumerApiVersion)
    +
    +  def getConsumerOffsets(
    --- End diff --
    
    The code was originally using default arguments.  That's what was causing 
the MiMa binary compatibility errors


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