Uploaded image for project: 'Kafka'
  1. Kafka
  2. KAFKA-1813

Build fails for scala 2.9.2

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 0.9.0.0
    • build
    • None

    Description

      Currently, in trunk, the 2.9.2 build fails with the following error:

      MirrorMaker.scala:507 overloaded method value commitOffsets with alternatives:
      (isAutoCommit: Boolean,topicPartitionOffsets: scala.collection.immutable.Map[kafka.common.TopicAndPartition,kafka.common.OffsetAndMetadata])Unit <and>
      (isAutoCommit: Boolean)Unit <and>
      => Unit
      cannot be applied to (isAutoCommit: Boolean, scala.collection.immutable.Map[kafka.common.TopicAndPartition,kafka.common.OffsetAndMetadata])
      connector.commitOffsets(isAutoCommit = false, offsetsToCommit)

      It looks like the 2.9.2 compiler cannot resolve an overloaded method when mixing named and ordered parameters.

      I ran into this when I cloned the repo and ran ./gradlew test.

      Attachments

        1. fix_2_9_2_build.patch
          1 kB
          Anatoly Fayngelerin

        Activity

          People

            fanatoly Anatoly Fayngelerin
            fanatoly Anatoly Fayngelerin
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: