HDFS-16867. Place MoverMetrics.create after initializing the blockpoolID
This commit is contained in:
parent
d347ff963c
commit
76f0818702
|
@ -179,7 +179,6 @@ public class NameNodeConnector implements Closeable {
|
||||||
this.idPath = idPath;
|
this.idPath = idPath;
|
||||||
this.targetPaths = targetPaths == null || targetPaths.isEmpty() ? Arrays
|
this.targetPaths = targetPaths == null || targetPaths.isEmpty() ? Arrays
|
||||||
.asList(new Path("/")) : targetPaths;
|
.asList(new Path("/")) : targetPaths;
|
||||||
this.moverMetrics = MoverMetrics.create(this);
|
|
||||||
this.maxNotChangedIterations = maxNotChangedIterations;
|
this.maxNotChangedIterations = maxNotChangedIterations;
|
||||||
int getBlocksMaxQps = conf.getInt(
|
int getBlocksMaxQps = conf.getInt(
|
||||||
DFSConfigKeys.DFS_NAMENODE_GETBLOCKS_MAX_QPS_KEY,
|
DFSConfigKeys.DFS_NAMENODE_GETBLOCKS_MAX_QPS_KEY,
|
||||||
|
@ -204,6 +203,8 @@ public class NameNodeConnector implements Closeable {
|
||||||
final NamespaceInfo namespaceinfo = namenode.versionRequest();
|
final NamespaceInfo namespaceinfo = namenode.versionRequest();
|
||||||
this.blockpoolID = namespaceinfo.getBlockPoolID();
|
this.blockpoolID = namespaceinfo.getBlockPoolID();
|
||||||
|
|
||||||
|
this.moverMetrics = MoverMetrics.create(this);
|
||||||
|
|
||||||
final FsServerDefaults defaults = fs.getServerDefaults(new Path("/"));
|
final FsServerDefaults defaults = fs.getServerDefaults(new Path("/"));
|
||||||
this.keyManager = new KeyManager(blockpoolID, namenode,
|
this.keyManager = new KeyManager(blockpoolID, namenode,
|
||||||
defaults.getEncryptDataTransfer(), conf);
|
defaults.getEncryptDataTransfer(), conf);
|
||||||
|
|
Loading…
Reference in New Issue