[ https://issues.apache.org/jira/browse/HDFS-17648?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Zhaobo Huang updated HDFS-17648: -------------------------------- Description: When executing 'b.runOneIteration()' in a loop, repeat the registration of metrics in the balancer constructor as follows: {code:java} Balancer(NameNodeConnector theblockpool, BalancerParameters p, Configuration conf) { ... this.metrics = BalancerMetrics.create(this); } {code} was: When executing 'b.runOneIteration()' in a loop, repeat the registration of metrics in the balancer constructor as follows: {code:java} Balancer(NameNodeConnector theblockpool, BalancerParameters p, Configuration conf) { ... this.metrics = BalancerMetrics.create(this); } {code} > Fix BalancerMetrics duplicate registration, causing the process to exit. > ------------------------------------------------------------------------ > > Key: HDFS-17648 > URL: https://issues.apache.org/jira/browse/HDFS-17648 > Project: Hadoop HDFS > Issue Type: Bug > Reporter: Zhaobo Huang > Assignee: Zhaobo Huang > Priority: Major > Labels: pull-request-available > > When executing 'b.runOneIteration()' in a loop, repeat the registration of > metrics in the balancer constructor as follows: > {code:java} > Balancer(NameNodeConnector theblockpool, BalancerParameters p, > Configuration conf) { > ... > this.metrics = BalancerMetrics.create(this); > } {code} -- This message was sent by Atlassian Jira (v8.20.10#820010) --------------------------------------------------------------------- To unsubscribe, e-mail: hdfs-issues-unsubscr...@hadoop.apache.org For additional commands, e-mail: hdfs-issues-h...@hadoop.apache.org