You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by wu...@apache.org on 2022/11/22 09:22:59 UTC

[ambari] branch trunk updated: AMBARI-25601: Ambari with AMS HA unable to change metrics collector for metrics providing on collector fail (#3556)

This is an automated email from the ASF dual-hosted git repository.

wuzhiguo pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/ambari.git


The following commit(s) were added to refs/heads/trunk by this push:
     new 11aadf25ee AMBARI-25601: Ambari with AMS HA unable to change metrics collector for metrics providing on collector fail (#3556)
11aadf25ee is described below

commit 11aadf25ee0491bdf9b0b92f9a9bb1fa816036c1
Author: Yu Hou <52...@qq.com>
AuthorDate: Tue Nov 22 17:22:53 2022 +0800

    AMBARI-25601: Ambari with AMS HA unable to change metrics collector for metrics providing on collector fail (#3556)
---
 .../server/controller/metrics/CollectorHostDownRefreshCounter.java      | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ambari-server/src/main/java/org/apache/ambari/server/controller/metrics/CollectorHostDownRefreshCounter.java b/ambari-server/src/main/java/org/apache/ambari/server/controller/metrics/CollectorHostDownRefreshCounter.java
index a025918c4e..eb6b4bcb53 100644
--- a/ambari-server/src/main/java/org/apache/ambari/server/controller/metrics/CollectorHostDownRefreshCounter.java
+++ b/ambari-server/src/main/java/org/apache/ambari/server/controller/metrics/CollectorHostDownRefreshCounter.java
@@ -23,7 +23,7 @@ import java.util.concurrent.atomic.AtomicInteger;
 public class CollectorHostDownRefreshCounter {
 
   private int collectorDownRefreshCounterLimit = 5;
-  private AtomicInteger collectorDownRefreshCounter;
+  private AtomicInteger collectorDownRefreshCounter = new AtomicInteger(0);
 
   CollectorHostDownRefreshCounter(int counter) {
     this.collectorDownRefreshCounterLimit = counter;


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@ambari.apache.org
For additional commands, e-mail: commits-help@ambari.apache.org