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

NPE in AllocationTagsManager when a container is removed more than once

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.1.0
    • Fix Version/s: 3.2.0, 3.1.2
    • Component/s: resourcemanager
    • Labels:
      None
    • Hadoop Flags:
      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.001.patch
          7 kB
          Weiwei Yang
        2. YARN-8521.002.patch
          14 kB
          Weiwei Yang
        3. YARN-8521.003.patch
          12 kB
          Weiwei Yang

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: