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

Some accesses to DomainSocketWatcher#closed are not protected by lock

VotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

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

        Issue Links

          Activity

            People

            • Assignee:
              cmccabe Colin McCabe
              Reporter:
              yuzhihong@gmail.com Ted Yu

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment