Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-15249

ThrottledAsyncChecker is not thread-safe.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 3.3.1, 3.4.0
    • federation
    • None
    • Reviewed

    Description

      ThrottledAsyncChecker should be thread-safe because it can be used by multiple threads when we have multiple namespaces.

      checksInProgress and completedChecks are respectively HashMap and WeakHashMap which are not thread-safe. So we need to put them in synchronized block whenever we access them.

      Attachments

        Issue Links

          Activity

            People

              brfrn169 Toshihiro Suzuki
              brfrn169 Toshihiro Suzuki
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: