You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Change from refreshing all nodes to a specific node, as the former holds the lock for a long time
How was this patch tested?
Tested with UT
Tested in a real HDFS cluster
$ hdfs dfsadmin -fs hdfs://test -refreshTopology 1.2.3.4
Refresh topology successful at active-namenode/1.1.1.1:8020 for 1.2.3.4
Refresh topology successful at standby-namenode/1.1.1.2:8020 for 1.2.3.4
Refresh topology successful at observer-namenode/1.1.1.3:8020 for 1.2.3.4
Note
It is also ok to pass in a hostname instead of an IP address, as keys of the cache may be hostnames sometimes.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description of PR
hdfs dfsadmin -refreshTopology <ipAddr>
HDFS-11242.002.patch
at https://issues.apache.org/jira/browse/HDFS-11242 with the following changestrunk
How was this patch tested?
Note