You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ac...@apache.org on 2023/02/08 13:42:45 UTC

[camel] 02/16: CAMEL-18131 - camel-health - Do not register Producer Health Check until CAMEL-18992 will be completed - CloudWatch

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

acosentino pushed a commit to branch camel-3.x
in repository https://gitbox.apache.org/repos/asf/camel.git

commit 4013b306bb6e45453b2a0e19ed44f94b418a863b
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Wed Feb 8 13:35:46 2023 +0100

    CAMEL-18131 - camel-health - Do not register Producer Health Check until CAMEL-18992 will be completed - CloudWatch
    
    Signed-off-by: Andrea Cosentino <an...@gmail.com>
---
 .../java/org/apache/camel/component/aws2/athena/Athena2Endpoint.java | 2 +-
 .../main/java/org/apache/camel/component/aws2/cw/Cw2Endpoint.java    | 5 +++--
 2 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/components/camel-aws/camel-aws2-athena/src/main/java/org/apache/camel/component/aws2/athena/Athena2Endpoint.java b/components/camel-aws/camel-aws2-athena/src/main/java/org/apache/camel/component/aws2/athena/Athena2Endpoint.java
index 0dd2b38d858..64f9e8d6de1 100644
--- a/components/camel-aws/camel-aws2-athena/src/main/java/org/apache/camel/component/aws2/athena/Athena2Endpoint.java
+++ b/components/camel-aws/camel-aws2-athena/src/main/java/org/apache/camel/component/aws2/athena/Athena2Endpoint.java
@@ -75,7 +75,7 @@ public class Athena2Endpoint extends DefaultEndpoint {
                 WritableHealthCheckRepository.class);
 
         if (healthCheckRepository != null) {
-            // Do not register the healt check until we resolve CAMEL-18992
+            // Do not register the health check until we resolve CAMEL-18992
             // clientHealthCheck = new Athena2ClientHealthCheck(this, getId());
             // healthCheckRepository.addHealthCheck(clientHealthCheck);
         }
diff --git a/components/camel-aws/camel-aws2-cw/src/main/java/org/apache/camel/component/aws2/cw/Cw2Endpoint.java b/components/camel-aws/camel-aws2-cw/src/main/java/org/apache/camel/component/aws2/cw/Cw2Endpoint.java
index 5c1dfec0808..2686a48260b 100644
--- a/components/camel-aws/camel-aws2-cw/src/main/java/org/apache/camel/component/aws2/cw/Cw2Endpoint.java
+++ b/components/camel-aws/camel-aws2-cw/src/main/java/org/apache/camel/component/aws2/cw/Cw2Endpoint.java
@@ -84,8 +84,9 @@ public class Cw2Endpoint extends DefaultEndpoint {
                 ComponentsHealthCheckRepository.REPOSITORY_ID, ComponentsHealthCheckRepository.class);
 
         if (healthCheckRepository != null) {
-            clientHealthCheck = new Cw2ClientHealthCheck(this, getId());
-            healthCheckRepository.addHealthCheck(clientHealthCheck);
+            // Do not register the health check until we resolve CAMEL-18992
+            //clientHealthCheck = new Cw2ClientHealthCheck(this, getId());
+            //healthCheckRepository.addHealthCheck(clientHealthCheck);
         }
     }