You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Thomas Mueller (JIRA)" <ji...@apache.org> on 2019/05/08 12:54:00 UTC
[jira] [Updated] (SLING-8408) ReplicationQueueHealthCheck and
DistributionQueueHealthCheck should deal with failing queries
[ https://issues.apache.org/jira/browse/SLING-8408?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Thomas Mueller updated SLING-8408:
----------------------------------
Description:
The following health check indirectly runs a queries which might fail:
* DistributionQueueHealthCheck: sling/contrib/extensions/distribution/core/src/main/java/org/apache/sling/distribution/monitor/DistributionQueueHealthCheck.java
The call [JobManagerImpl.findJobs|https://github.com/apache/sling-org-apache-sling-event/blob/master/src/main/java/org/apache/sling/event/impl/jobs/JobManagerImpl.java#L373], which can throw an exception with SLING-8407, if the index is not yet available. The health checks should catch this exception and return HEALTH_CHECK_ERROR for this case.
was:
The following health checks indirectly run queries which might fail:
* ReplicationQueueHealthCheck: sling/contrib/extensions/replication/core/src/main/java/org/apache/sling/replication/monitor/ReplicationQueueHealthCheck.java
* DistributionQueueHealthCheck: sling/contrib/extensions/distribution/core/src/main/java/org/apache/sling/distribution/monitor/DistributionQueueHealthCheck.java
The call [JobManagerImpl.findJobs|https://github.com/apache/sling-org-apache-sling-event/blob/master/src/main/java/org/apache/sling/event/impl/jobs/JobManagerImpl.java#L373], which can throw an exception with SLING-8407, if the index is not yet available. The health checks should catch this exception and return HEALTH_CHECK_ERROR for this case.
> ReplicationQueueHealthCheck and DistributionQueueHealthCheck should deal with failing queries
> ---------------------------------------------------------------------------------------------
>
> Key: SLING-8408
> URL: https://issues.apache.org/jira/browse/SLING-8408
> Project: Sling
> Issue Type: Improvement
> Components: Content Distribution
> Reporter: Thomas Mueller
> Priority: Major
>
> The following health check indirectly runs a queries which might fail:
> * DistributionQueueHealthCheck: sling/contrib/extensions/distribution/core/src/main/java/org/apache/sling/distribution/monitor/DistributionQueueHealthCheck.java
> The call [JobManagerImpl.findJobs|https://github.com/apache/sling-org-apache-sling-event/blob/master/src/main/java/org/apache/sling/event/impl/jobs/JobManagerImpl.java#L373], which can throw an exception with SLING-8407, if the index is not yet available. The health checks should catch this exception and return HEALTH_CHECK_ERROR for this case.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)