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: [email protected]
For additional commands, e-mail: [email protected]