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

Class CommitThread overwrite group of Thread class causing compile errors

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 0.9.0.0
    • core
    • scala 2.10.4

    Description

      class CommitThread(id: Int, partitionCount: Int, commitIntervalMs: Long, zkClient: ZkClient)
      extends ShutdownableThread("commit-thread")
      with KafkaMetricsGroup {

      private val group = "group-" + id

      group overwrite class Thread group member, causing the following compile error:

      overriding variable group in class Thread of type ThreadGroup; value group has weaker access privileges; it should not be private

      Attachments

        1. compileError.png
          41 kB
          Tong Li
        2. KAFKA-1959.patch
          3 kB
          Tong Li

        Activity

          People

            tongli Tong Li
            tongli Tong Li
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: