After HDFS-4521, once a DN is registered with invalid networktopology, all cached rack info in DNSToSwitchMapping will be cleared. We should only clear cache on specific nodes.
Reconfigure DN's topology without restart DN
Get rid of nodes' registration names
invalid network topologies should not be cached