This is an automated email from the ASF dual-hosted git repository.
umamahesh pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ozone.git
The following commit(s) were added to refs/heads/master by this push:
new 31d43d18a9 HDDS-9090. NullPointerException thrown by
ReplicationManagerMetrics because of the order of initialization (#5126)
31d43d18a9 is described below
commit 31d43d18a9edafca5d69c8c6c30760e33d2088a8
Author: Aswin Shakil Balasubramanian <[email protected]>
AuthorDate: Thu Jul 27 11:36:14 2023 -0700
HDDS-9090. NullPointerException thrown by ReplicationManagerMetrics because
of the order of initialization (#5126)
---
.../hadoop/hdds/scm/container/replication/ReplicationManager.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/hadoop-hdds/server-scm/src/main/java/org/apache/hadoop/hdds/scm/container/replication/ReplicationManager.java
b/hadoop-hdds/server-scm/src/main/java/org/apache/hadoop/hdds/scm/container/replication/ReplicationManager.java
index d1d8a3782b..4974407f36 100644
---
a/hadoop-hdds/server-scm/src/main/java/org/apache/hadoop/hdds/scm/container/replication/ReplicationManager.java
+++
b/hadoop-hdds/server-scm/src/main/java/org/apache/hadoop/hdds/scm/container/replication/ReplicationManager.java
@@ -243,6 +243,7 @@ public class ReplicationManager implements SCMService {
this.ratisReplicationCheckHandler =
new RatisReplicationCheckHandler(ratisContainerPlacement);
this.nodeManager = nodeManager;
+ this.metrics = ReplicationManagerMetrics.create(this);
ecUnderReplicationHandler = new ECUnderReplicationHandler(
ecContainerPlacement, conf, this);
@@ -285,7 +286,6 @@ public class ReplicationManager implements SCMService {
if (!isRunning()) {
LOG.info("Starting Replication Monitor Thread.");
running = true;
- metrics = ReplicationManagerMetrics.create(this);
if (rmConf.isLegacyEnabled()) {
legacyReplicationManager.setMetrics(metrics);
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]