-
Bug
-
Resolution: Tracked Elsewhere
-
Low
-
None
-
7.1.0, 7.2.0, 7.3.0, 7.4.0, 7.0.0
-
7
-
8
-
Severity 3 - Minor
-
4
-
Summary
The Free Space Health check uses common-io library to calculate the size of the index directory, to verify there is enough free space for indexing. Due to a bug in the library, IO-389, this can cause the check to fail if a file is deleted whilst the check is running. We use commons-io 1.4 in the plugin.
Steps to Reproduce
- Have a large index dir setup
- Run the health check
- Delete a lucene segment file during the check
Expected Results
The check can continue without problems
Actual Results
An exception is thrown as below:
2017-08-08 15:01:00,082 SupportHealthCheckThread-7 ERROR [c.a.j.p.healthcheck.support.AbstractSupportHealthCheck] Unhandled error during healthcheck java.lang.IllegalArgumentException: /export/apps/jira/jira_data_7210/caches/indexes/issues/_7fsrj.tis does not exist at org.apache.commons.io.FileUtils.sizeOf(FileUtils.java:2053) at org.apache.commons.io.FileUtils.sizeOfDirectory(FileUtils.java:2089) at org.apache.commons.io.FileUtils.sizeOf(FileUtils.java:2057) at org.apache.commons.io.FileUtils.sizeOfDirectory(FileUtils.java:2089) at com.atlassian.jira.plugins.healthcheck.util.CachedDirectorySizeEstimator.sizeOfFile(CachedDirectorySizeEstimator.java:52) at com.atlassian.jira.plugins.healthcheck.support.StorageIndexSnapshotHealthCheck.checkFreeDiskSpaceForIndex(StorageIndexSnapshotHealthCheck.java:57) at com.atlassian.jira.plugins.healthcheck.support.StorageIndexSnapshotHealthCheck.doCheck(StorageIndexSnapshotHealthCheck.java:50) at com.atlassian.jira.plugins.healthcheck.support.AbstractSupportHealthCheck.check(AbstractSupportHealthCheck.java:27) at com.atlassian.support.healthcheck.impl.PluginSuppliedSupportHealthCheck.check(PluginSuppliedSupportHealthCheck.java:41) at com.atlassian.support.healthcheck.thread.HealthCheckCallable.call(HealthCheckCallable.java:32) at com.atlassian.support.healthcheck.thread.HealthCheckCallable.call(HealthCheckCallable.java:15) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745)
Workaround
- Browse to Manage add-ons
- Expand the Atlassian JIRA - Plugins - Instance Health Plugin plugin
- Click + next to "n of n modules enabled"
- Search for "storageIndexSnapshotHealthCheck"
- Mouse-over it and click Disable.
- is related to
-
JRASERVER-65535 Reduce strictness of Index Consistency health check in Jira
- Closed
-
JRASERVER-65278 JIRA doesn't log com.atlassian.support messages by default
- Gathering Impact
(2 relates to)