[
https://issues.apache.org/jira/browse/HDDS-8867?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Attila Doroszlai updated HDDS-8867:
-----------------------------------
Fix Version/s: 1.4.0
Resolution: Fixed
Status: Resolved (was: Patch Available)
> 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
> Priority: Major
> Labels: pull-request-available
> Fix For: 1.4.0
>
>
> 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]