Skip to content

Commit

Permalink
Fix the failure of update cluster name in metric framework of ConfigN…
Browse files Browse the repository at this point in the history
…ode (#13681)
  • Loading branch information
SpriCoder authored Oct 9, 2024
1 parent e09a98b commit 3544970
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
import org.apache.iotdb.confignode.manager.load.balancer.router.priority.IPriorityBalancer;
import org.apache.iotdb.confignode.manager.partition.RegionGroupExtensionPolicy;
import org.apache.iotdb.consensus.ConsensusFactory;
import org.apache.iotdb.metrics.config.MetricConfigDescriptor;

import java.io.File;
import java.lang.reflect.Field;
Expand Down Expand Up @@ -335,6 +336,7 @@ public String getClusterName() {

public void setClusterName(String clusterName) {
this.clusterName = clusterName;
MetricConfigDescriptor.getInstance().getMetricConfig().updateClusterName(clusterName);
}

public int getConfigNodeId() {
Expand Down

0 comments on commit 3544970

Please sign in to comment.