Uploaded image for project: 'Hadoop YARN'
  1. Hadoop YARN
  2. YARN-8521

NPE in AllocationTagsManager when a container is removed more than once

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.1.0
    • 3.2.0, 3.1.2
    • resourcemanager
    • None
    • Reviewed

    Description

      We've seen sometimes there is NPE in AllocationTagsManager

      private void removeTagFromInnerMap(Map<String, Long> innerMap, String tag) {
        Long count = innerMap.get(tag);
        if (count > 1) { // NPE!!
        ...
      

      it seems AllocationTagsManager#removeContainer somehow gets called more than once for a same container.

      Attachments

        1. YARN-8521.003.patch
          12 kB
          Weiwei Yang
        2. YARN-8521.002.patch
          14 kB
          Weiwei Yang
        3. YARN-8521.001.patch
          7 kB
          Weiwei Yang

        Activity

          People

            cheersyang Weiwei Yang
            cheersyang Weiwei Yang
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: