Uploaded image for project: 'Apache Ozone'
  1. Apache Ozone
  2. HDDS-8867

Datanode re-registration memory leak

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.4.0
    • SCM

    Description

      SCM does not properly remove datanode address to UUID mapping for the old address when datanode re-registers with different address. It tries to remove dnsName (address) from the set of UUIDs:

        private synchronized void removeEntryFromDnsToUuidMap(String dnsName) {
          if (!dnsToUuidMap.containsKey(dnsName)) {
            return;
          }
          Set<String> dnSet = dnsToUuidMap.get(dnsName);
          if (dnSet.contains(dnsName)) {
            dnSet.remove(dnsName);
          }
          if (dnSet.isEmpty()) {
            dnsToUuidMap.remove(dnsName);
          }
        }
      

      Attachments

        Issue Links

          Activity

            People

              adoroszlai Attila Doroszlai
              adoroszlai Attila Doroszlai
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: