Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-10404

Some accesses to DomainSocketWatcher#closed are not protected by lock

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 2.6.0
    • None
    • None

    Description

         * Lock which protects toAdd, toRemove, and closed.
         */
        private final ReentrantLock lock = new ReentrantLock();
      

      There're two places, NotificationHandler.handle() and kick(), where access to closed is without holding lock.

      Attachments

        1. HADOOP-10404.003.patch
          2 kB
          Colin McCabe
        2. HADOOP-10404.2.patch
          1 kB
          Tsuyoshi Ozawa
        3. HADOOP-10404.1.patch
          1 kB
          Tsuyoshi Ozawa

        Issue Links

          Activity

            People

              cmccabe Colin McCabe
              yuzhihong@gmail.com Ted Yu
              Votes:
              0 Vote for this issue
              Watchers:
              10 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: