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

Some accesses to DomainSocketWatcher#closed are not protected by lock

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.6.0
    • Component/s: None
    • Labels:
      None
    • Target Version/s:

      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 P. McCabe
        2. HADOOP-10404.1.patch
          1 kB
          Tsuyoshi Ozawa
        3. HADOOP-10404.2.patch
          1 kB
          Tsuyoshi Ozawa

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: