Skip to content

Commit

Permalink
HDFS-16831. Add doc for shuffleObserverNN.
Browse files Browse the repository at this point in the history
  • Loading branch information
ZanderXu committed Nov 9, 2022
1 parent ebadfb1 commit 4451a84
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,13 @@ private void updateNameNodeState(final String nsId,
}
}

/**
* Try to shuffle the multiple observer namenodes if listObserversFirst is true.
* @param inputNameNodes the input namenodes which has been sorted by NamenodePriorityComparator
* @param listObserversFirst true if we need to shuffule the multiple observer namenodes.
* @return a list of FederationNamenodeContext.
* @param <T> a subclass of FederationNamenodeContext.
*/
private <T extends FederationNamenodeContext> List<T> shuffleObserverNN(
List<T> inputNameNodes, boolean listObserversFirst) {
if (!listObserversFirst) {
Expand Down

0 comments on commit 4451a84

Please sign in to comment.