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

make overflowWheel volatile

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 0.9.0.0
    • purgatory
    • None

    Description

      overflowWheel in TimingWheel needs to be volatile due to the issue of Double-Checked Locking pattern with JVM.

      http://www.cs.umd.edu/~pugh/java/memoryModel/DoubleCheckedLocking.html

      Attachments

        1. KAFKA-2112.patch
          1 kB
          Yasuhiro Matsuda

        Activity

          People

            yasuhiro.matsuda Yasuhiro Matsuda
            yasuhiro.matsuda Yasuhiro Matsuda
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: