You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "Attila Doroszlai (Jira)" <ji...@apache.org> on 2023/06/16 07:03:00 UTC
[jira] [Created] (HDDS-8867) Datanode re-registration memory leak
Attila Doroszlai created HDDS-8867:
--------------------------------------
Summary: Datanode re-registration memory leak
Key: HDDS-8867
URL: https://issues.apache.org/jira/browse/HDDS-8867
Project: Apache Ozone
Issue Type: Bug
Components: SCM
Reporter: Attila Doroszlai
Assignee: Attila Doroszlai
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:
{code:title=https://github.com/apache/ozone/blob/3846cd249d10a6f7d937853be0f97c848d9ea6a6/hadoop-hdds/server-scm/src/main/java/org/apache/hadoop/hdds/scm/node/SCMNodeManager.java#L481-L492}
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);
}
}
{code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org