You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-dev@hadoop.apache.org by "jianghua zhu (Jira)" <ji...@apache.org> on 2020/08/28 10:01:00 UTC

[jira] [Created] (HDFS-15546) Remove duplicate initializeGenericKeys method when creating DFSZKFailoverController

jianghua zhu created HDFS-15546:
-----------------------------------

             Summary: Remove duplicate initializeGenericKeys method when creating DFSZKFailoverController
                 Key: HDFS-15546
                 URL: https://issues.apache.org/jira/browse/HDFS-15546
             Project: Hadoop HDFS
          Issue Type: Improvement
            Reporter: jianghua zhu


When calling the DFSZKFailoverController#create() method, call NameNode#initializeGenericKeys() twice.
First call:
DFSZKFailoverController#create() {
...
NameNode.initializeGenericKeys(localNNConf, nsId, nnId);
...
}


The second call:
NNHAServiceTarget construction method:
NNHAServiceTarget() {
...
NameNode.initializeGenericKeys(targetConf, nsId, nnId);
...
}
In fact, the parameters passed in the two calls are the same. Here you can remove the first call without affecting the program itself.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-dev-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-dev-help@hadoop.apache.org