You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by ha...@apache.org on 2020/12/16 10:18:59 UTC

[ambari] branch branch-2.7 updated: AMBARI-25601. Ambari with AMS HA unable to change metrics collector for metrics providing on collector fail. (dvitiuk via dgrinenko) (#3274)

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

hapylestat pushed a commit to branch branch-2.7
in repository https://gitbox.apache.org/repos/asf/ambari.git


The following commit(s) were added to refs/heads/branch-2.7 by this push:
     new 1b1ad08  AMBARI-25601. Ambari with AMS HA unable to change metrics collector for metrics providing on collector fail. (dvitiuk via dgrinenko) (#3274)
1b1ad08 is described below

commit 1b1ad08b8621ff737ed61e0cfecba9929e8ccfac
Author: dvitiiuk <dm...@gmail.com>
AuthorDate: Wed Dec 16 12:18:43 2020 +0200

    AMBARI-25601. Ambari with AMS HA unable to change metrics collector for metrics providing on collector fail. (dvitiuk via dgrinenko) (#3274)
---
 .../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 a025918..eb6b4bc 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;