java.util.concurrent.CancellationException

Atlassian JIRA | Andriy Yakovlev [Atlassian] | 7 months ago
  1. 0

    h3. Summary JIRA Active Object health-check fails after restart when Oracle is used. Initialisation of AO data is too slow and take more then 5 seconds. Subsequent health-check calls use cached data and doesn't show any problem. h3. Environment * JIRA 7 * Database: Oracle Database 12c Enterprise Edition Release 12.1.0.1.0 * Health-check plugins: {code:borderStyle=solid} Atlassian HealthCheck Common Module : com.atlassian.healthcheck.atlassian-healthcheck Version : 3.0.1 Atlassian JIRA - Plugins - Instance Health Plugin : com.atlassian.jira.plugins.jira-healthcheck-plugin Version : 2.1.7 Support Healthcheck Plugin : com.atlassian.support.healthcheck.support-healthcheck-plugin Version : 2.0.6 {code} h3. Steps to Reproduce # Restart JIRA # Login to JIRA # Execute health-check h3. Expected Results All checks are fine h3. Actual Results UI error: !JIRA_AO_check.png|thumbnail! The below exception is thrown in the atlassian-jira.log file: {noformat} 2016-04-17 22:36:12,636 Caesium-1-3 DEBUG ServiceRunner [c.a.activeobjects.osgi.ActiveObjectsServiceFactory] getService bundle [com.atlassian.support.healthcheck.support-healthcheck-plugin] 2016-04-17 22:36:19,964 Caesium-1-3 ERROR ServiceRunner [c.a.scheduler.core.JobLauncher] Scheduled job with ID 'JiraPluginScheduler:com.atlassian.support.healthcheck.scheduler.HealthCheckRunnerImpl:job' failed java.util.concurrent.CancellationException at java.util.concurrent.FutureTask.report(FutureTask.java:121) at java.util.concurrent.FutureTask.get(FutureTask.java:206) at com.atlassian.support.healthcheck.impl.DefaultSupportHealthCheckManager.getHealthCheckStatus(DefaultSupportHealthCheckManager.java:107) at com.atlassian.support.healthcheck.impl.DefaultSupportHealthCheckManager.access$000(DefaultSupportHealthCheckManager.java:30) at com.atlassian.support.healthcheck.impl.DefaultSupportHealthCheckManager$1.apply(DefaultSupportHealthCheckManager.java:96) at com.atlassian.support.healthcheck.impl.DefaultSupportHealthCheckManager$1.apply(DefaultSupportHealthCheckManager.java:92) at com.google.common.collect.Lists$TransformingRandomAccessList$1.transform(Lists.java:617) at com.google.common.collect.TransformedIterator.next(TransformedIterator.java:48) at java.util.AbstractCollection.toArray(AbstractCollection.java:141) at com.google.common.collect.ImmutableList.copyOf(ImmutableList.java:258) at com.atlassian.support.healthcheck.api.model.HealthCheckStatusReport.<init>(HealthCheckStatusReport.java:29) at com.atlassian.support.healthcheck.api.model.HealthCheckStatusReport.<init>(HealthCheckStatusReport.java:16) at com.atlassian.support.healthcheck.api.model.HealthCheckStatusReport$Builder.build(HealthCheckStatusReport.java:59) at com.atlassian.support.healthcheck.impl.HealthCheckServiceImpl.runChecks(HealthCheckServiceImpl.java:88) at com.atlassian.support.healthcheck.scheduler.HealthCheckJob.execute(HealthCheckJob.java:39) ... {noformat} h3. Notes See related https://jira.atlassian.com/browse/JRA-60711 h3.Workaround None. You can ignore the error as long the follow health-check run doesn't show any problem

    Atlassian JIRA | 7 months ago | Andriy Yakovlev [Atlassian]
    java.util.concurrent.CancellationException
  2. 0

    h3. Summary JIRA Active Object health-check fails after restart when Oracle is used. Initialisation of AO data is too slow and take more then 5 seconds. Subsequent health-check calls use cached data and doesn't show any problem. h3. Environment * JIRA 7 * Database: Oracle Database 12c Enterprise Edition Release 12.1.0.1.0 * Health-check plugins: {code:borderStyle=solid} Atlassian HealthCheck Common Module : com.atlassian.healthcheck.atlassian-healthcheck Version : 3.0.1 Atlassian JIRA - Plugins - Instance Health Plugin : com.atlassian.jira.plugins.jira-healthcheck-plugin Version : 2.1.7 Support Healthcheck Plugin : com.atlassian.support.healthcheck.support-healthcheck-plugin Version : 2.0.6 {code} h3. Steps to Reproduce # Restart JIRA # Login to JIRA # Execute health-check h3. Expected Results All checks are fine h3. Actual Results UI error: !JIRA_AO_check.png|thumbnail! The below exception is thrown in the atlassian-jira.log file: {noformat} 2016-04-17 22:36:12,636 Caesium-1-3 DEBUG ServiceRunner [c.a.activeobjects.osgi.ActiveObjectsServiceFactory] getService bundle [com.atlassian.support.healthcheck.support-healthcheck-plugin] 2016-04-17 22:36:19,964 Caesium-1-3 ERROR ServiceRunner [c.a.scheduler.core.JobLauncher] Scheduled job with ID 'JiraPluginScheduler:com.atlassian.support.healthcheck.scheduler.HealthCheckRunnerImpl:job' failed java.util.concurrent.CancellationException at java.util.concurrent.FutureTask.report(FutureTask.java:121) at java.util.concurrent.FutureTask.get(FutureTask.java:206) at com.atlassian.support.healthcheck.impl.DefaultSupportHealthCheckManager.getHealthCheckStatus(DefaultSupportHealthCheckManager.java:107) at com.atlassian.support.healthcheck.impl.DefaultSupportHealthCheckManager.access$000(DefaultSupportHealthCheckManager.java:30) at com.atlassian.support.healthcheck.impl.DefaultSupportHealthCheckManager$1.apply(DefaultSupportHealthCheckManager.java:96) at com.atlassian.support.healthcheck.impl.DefaultSupportHealthCheckManager$1.apply(DefaultSupportHealthCheckManager.java:92) at com.google.common.collect.Lists$TransformingRandomAccessList$1.transform(Lists.java:617) at com.google.common.collect.TransformedIterator.next(TransformedIterator.java:48) at java.util.AbstractCollection.toArray(AbstractCollection.java:141) at com.google.common.collect.ImmutableList.copyOf(ImmutableList.java:258) at com.atlassian.support.healthcheck.api.model.HealthCheckStatusReport.<init>(HealthCheckStatusReport.java:29) at com.atlassian.support.healthcheck.api.model.HealthCheckStatusReport.<init>(HealthCheckStatusReport.java:16) at com.atlassian.support.healthcheck.api.model.HealthCheckStatusReport$Builder.build(HealthCheckStatusReport.java:59) at com.atlassian.support.healthcheck.impl.HealthCheckServiceImpl.runChecks(HealthCheckServiceImpl.java:88) at com.atlassian.support.healthcheck.scheduler.HealthCheckJob.execute(HealthCheckJob.java:39) ... {noformat} h3. Notes See related https://jira.atlassian.com/browse/JRA-60711 Thread-dumps indicates that healthcheck stuck in: {code} at com.atlassian.pocketknife.internal.querydsl.schema.DefaultSchemaProvider.tablesToSchema(DefaultSchemaProvider.java:131) {code} another possible place could be: {code} at com.atlassian.pocketknife.internal.querydsl.schema.DefaultSchemaProvider.tableColumnNames {code} The code that executes slowly on oracle is: {code} connection.getMetaData().getTables((String) null, (String) null, (String) null, (String[]) null); {code} h3.Workaround * Upgrade the [JIRA Instance Health Plugin|https://marketplace.atlassian.com/plugins/com.atlassian.jira.plugins.jira-healthcheck-plugin/server/overview] to version 2.1.12 or later. The ActiveObjects health check was temporarily disabled so that we can improve its effectiveness and reliability. * If you can't upgrade for any reason, it's safe to ignore the error as long the follow health-check run doesn't show any problem

    Atlassian JIRA | 7 months ago | Andriy Yakovlev [Atlassian]
    java.util.concurrent.CancellationException
  3. 0

    h3. Summary JIRA {{getHealthCheckStatus}} method doesn't catch _CancellationException_. JIRA {{getHealthCheckStatus}} waits 5 sec to finish each healthcheck and after that time it is cancelled. h3. Steps to Reproduce # Use slow executed health-check. This could be ActiveObjects health-check with Oracle or Lucene at heavy loaded system # Execute health-check h3. Expected Results Health check with work or will be specific about cause of error h3. Actual Results The below exception is thrown in the atlassian-jira.log file: {noformat} 2016-04-18 01:57:15,402 http-nio-8090-exec-18 ERROR admin 117x1464x1 1h6ljo7 10.98.61.2 /rest/supportHealthCheck/1.0/checkDetails [c.a.p.r.c.error.jersey.ThrowableExceptionMapper] Uncaught exception thrown by REST service: null java.util.concurrent.CancellationException at java.util.concurrent.FutureTask.report(FutureTask.java:121) at java.util.concurrent.FutureTask.get(FutureTask.java:206) at com.atlassian.support.healthcheck.impl.DefaultSupportHealthCheckManager.getHealthCheckStatus(DefaultSupportHealthCheckManager.java:107) at com.atlassian.support.healthcheck.impl.DefaultSupportHealthCheckManager.access$000(DefaultSupportHealthCheckManager.java:30) at com.atlassian.support.healthcheck.impl.DefaultSupportHealthCheckManager$1.apply(DefaultSupportHealthCheckManager.java:96) at com.atlassian.support.healthcheck.impl.DefaultSupportHealthCheckManager$1.apply(DefaultSupportHealthCheckManager.java:92) at com.google.common.collect.Lists$TransformingRandomAccessList$1.transform(Lists.java:617) at com.google.common.collect.TransformedIterator.next(TransformedIterator.java:48) at java.util.AbstractCollection.toArray(AbstractCollection.java:141) at com.google.common.collect.ImmutableList.copyOf(ImmutableList.java:258) at com.atlassian.support.healthcheck.api.model.HealthCheckStatusReport.<init>(HealthCheckStatusReport.java:29) at com.atlassian.support.healthcheck.api.model.HealthCheckStatusReport.<init>(HealthCheckStatusReport.java:16) at com.atlassian.support.healthcheck.api.model.HealthCheckStatusReport$Builder.build(HealthCheckStatusReport.java:59) at com.atlassian.support.healthcheck.impl.HealthCheckServiceImpl.runChecks(HealthCheckServiceImpl.java:88) at com.atlassian.support.healthcheck.rest.HealthCheckResource.checkDetails(HealthCheckResource.java:115) {noformat} h3. Notes See related ActiveObjects health-check with Oracle ticket: https://jira.atlassian.com/browse/JRA-60712 h3.Workaround None

    Atlassian JIRA | 7 months ago | Andriy Yakovlev [Atlassian]
    java.util.concurrent.CancellationException
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    h3. Summary JIRA {{getHealthCheckStatus}} method doesn't catch _CancellationException_. JIRA {{getHealthCheckStatus}} waits 5 sec to finish each healthcheck and after that time it is cancelled. h3. Steps to Reproduce # Use slow executed health-check. This could be ActiveObjects health-check with Oracle or Lucene at heavy loaded system # Execute health-check h3. Expected Results Health check with work or will be specific about cause of error h3. Actual Results The below exception is thrown in the atlassian-jira.log file: {noformat} 2016-04-18 01:57:15,402 http-nio-8090-exec-18 ERROR admin 117x1464x1 1h6ljo7 10.98.61.2 /rest/supportHealthCheck/1.0/checkDetails [c.a.p.r.c.error.jersey.ThrowableExceptionMapper] Uncaught exception thrown by REST service: null java.util.concurrent.CancellationException at java.util.concurrent.FutureTask.report(FutureTask.java:121) at java.util.concurrent.FutureTask.get(FutureTask.java:206) at com.atlassian.support.healthcheck.impl.DefaultSupportHealthCheckManager.getHealthCheckStatus(DefaultSupportHealthCheckManager.java:107) at com.atlassian.support.healthcheck.impl.DefaultSupportHealthCheckManager.access$000(DefaultSupportHealthCheckManager.java:30) at com.atlassian.support.healthcheck.impl.DefaultSupportHealthCheckManager$1.apply(DefaultSupportHealthCheckManager.java:96) at com.atlassian.support.healthcheck.impl.DefaultSupportHealthCheckManager$1.apply(DefaultSupportHealthCheckManager.java:92) at com.google.common.collect.Lists$TransformingRandomAccessList$1.transform(Lists.java:617) at com.google.common.collect.TransformedIterator.next(TransformedIterator.java:48) at java.util.AbstractCollection.toArray(AbstractCollection.java:141) at com.google.common.collect.ImmutableList.copyOf(ImmutableList.java:258) at com.atlassian.support.healthcheck.api.model.HealthCheckStatusReport.<init>(HealthCheckStatusReport.java:29) at com.atlassian.support.healthcheck.api.model.HealthCheckStatusReport.<init>(HealthCheckStatusReport.java:16) at com.atlassian.support.healthcheck.api.model.HealthCheckStatusReport$Builder.build(HealthCheckStatusReport.java:59) at com.atlassian.support.healthcheck.impl.HealthCheckServiceImpl.runChecks(HealthCheckServiceImpl.java:88) at com.atlassian.support.healthcheck.rest.HealthCheckResource.checkDetails(HealthCheckResource.java:115) {noformat} h3. Notes See related ActiveObjects health-check with Oracle ticket: https://jira.atlassian.com/browse/JRA-60712 h3.Workaround None

    Atlassian JIRA | 7 months ago | Andriy Yakovlev [Atlassian]
    java.util.concurrent.CancellationException
  6. 0

    h3. Summary The 2.1.12 instance health plugin adds a check for the presence of jira-healthcheck-eol.json in your jira home directory to check EOL date. If that file is not present on the system and the system cannot reach the marketplacet to check EOL the health check plugin will not run and will throw an error of 'there was an error performing the instance health check' in the GUI. !health_error.JPG|thumbnail! h3. Steps to Reproduce # Install the 2.1.12 instance health plugin # Check that jira-healthcheck-eol.json does not exist in JIRA_HOME # remove the ability of the system to connect to the marketplace # Check the instance health tab in JIRA h3. Expected Results That you can run the instance health check if JIRA does not have connectivity to the internet/marketplace h3. Actual Results The below exception is thrown in the xxxxxxx.log file: {noformat} 2016-06-29 15:36:54,900 http-nio-8080-exec-8 ERROR jgibbons 936x230x1 1hki7mv 10.10.21.19,10.68.179.129 /rest/supportHealthCheck/1.0/checkDetails [c.a.p.r.c.error.jersey.ThrowableExceptionMapper] Uncaught exception thrown by REST service: null java.util.concurrent.CancellationException at java.util.concurrent.FutureTask.report(FutureTask.java:121) at java.util.concurrent.FutureTask.get(FutureTask.java:206) at com.atlassian.support.healthcheck.impl.DefaultSupportHealthCheckManager.getHealthCheckStatus(DefaultSupportHealthCheckManager.java:107) at com.atlassian.support.healthcheck.impl.DefaultSupportHealthCheckManager.access$000(DefaultSupportHealthCheckManager.java:30) at com.atlassian.support.healthcheck.impl.DefaultSupportHealthCheckManager$1.apply(DefaultSupportHealthCheckManager.java:96) at com.atlassian.support.healthcheck.impl.DefaultSupportHealthCheckManager$1.apply(DefaultSupportHealthCheckManager.java:92) at com.google.common.collect.Lists$TransformingRandomAccessList$1.transform(Lists.java:617) at com.google.common.collect.TransformedIterator.next(TransformedIterator.java:48) at java.util.AbstractCollection.toArray(AbstractCollection.java:141) ... 2016-06-29 15:37:52,809 SupportHealthCheckThread-6 ERROR ServiceRunner [c.a.j.p.healthcheck.support.EOLSupportHealthCheck] An error occurred when performing the EOL check, see the exceptions for more info org.apache.http.conn.ConnectTimeoutException: Connect to marketplace.atlassian.com:443 [marketplace.atlassian.com/131.103.28.7] failed: Connection timed out {noformat} h3. Workaround * [ensure connectivity with marketplace.atlassian.com |https://confluence.atlassian.com/display/UPM/Problems+Connecting+to+the+Atlassian+Marketplace] * or create _<JIRA_HOME>_/{{jira-healthcheck-eol.json}} with example content. This file is located in the /var/atlassian/application-data/jira folder by default on a linux system. {code:java} {"versions":[{"name":"7.2.0","releaseDate":"2016-08-24"},{"name":"7.1.0","releaseDate":"2016-02-10"},{"name":"7.0.0","releaseDate":"2015-09-25"}]} {code} h3. Notes The issue also seems to be happening on environment that utilize outbound proxy, whereby, even configuration are done correctly (adding marketplace to the non proxy host config), and connection towards Marketplace is possible (add-ons and UPM works fine), the healthcheck plugin still throws {{Connect to marketplace.atlassian.com:443 [marketplace.atlassian.com/131.103.28.7] failed: Connection timed out}}

    Atlassian JIRA | 5 months ago | Scott Christopher [Atlassian]
    java.util.concurrent.CancellationException

  1. Saravana Kumar Chinnaraj 2 times, last 8 months ago
  2. ashish.sadhwani 1 times, last 8 months ago
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.util.concurrent.CancellationException

    No message provided

    at java.util.concurrent.FutureTask.report()
  2. Java RT
    FutureTask.get
    1. java.util.concurrent.FutureTask.report(FutureTask.java:121)
    2. java.util.concurrent.FutureTask.get(FutureTask.java:206)
    2 frames
  3. com.atlassian.support
    DefaultSupportHealthCheckManager$1.apply
    1. com.atlassian.support.healthcheck.impl.DefaultSupportHealthCheckManager.getHealthCheckStatus(DefaultSupportHealthCheckManager.java:107)
    2. com.atlassian.support.healthcheck.impl.DefaultSupportHealthCheckManager.access$000(DefaultSupportHealthCheckManager.java:30)
    3. com.atlassian.support.healthcheck.impl.DefaultSupportHealthCheckManager$1.apply(DefaultSupportHealthCheckManager.java:96)
    4. com.atlassian.support.healthcheck.impl.DefaultSupportHealthCheckManager$1.apply(DefaultSupportHealthCheckManager.java:92)
    4 frames
  4. Guava
    TransformedIterator.next
    1. com.google.common.collect.Lists$TransformingRandomAccessList$1.transform(Lists.java:617)
    2. com.google.common.collect.TransformedIterator.next(TransformedIterator.java:48)
    2 frames
  5. Java RT
    AbstractCollection.toArray
    1. java.util.AbstractCollection.toArray(AbstractCollection.java:141)
    1 frame
  6. Guava
    ImmutableList.copyOf
    1. com.google.common.collect.ImmutableList.copyOf(ImmutableList.java:258)
    1 frame
  7. com.atlassian.support
    HealthCheckJob.execute
    1. com.atlassian.support.healthcheck.api.model.HealthCheckStatusReport.<init>(HealthCheckStatusReport.java:29)
    2. com.atlassian.support.healthcheck.api.model.HealthCheckStatusReport.<init>(HealthCheckStatusReport.java:16)
    3. com.atlassian.support.healthcheck.api.model.HealthCheckStatusReport$Builder.build(HealthCheckStatusReport.java:59)
    4. com.atlassian.support.healthcheck.impl.HealthCheckServiceImpl.runChecks(HealthCheckServiceImpl.java:88)
    5. com.atlassian.support.healthcheck.scheduler.HealthCheckJob.execute(HealthCheckJob.java:39)
    5 frames