com.atlassian.jira.index.IndexingFailureException: Indexing completed with 3 errors

Atlassian JIRA | David Currie [Atlassian] | 3 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    [JRA-36857] Reindex all fails with an com.atlassian.jira.index.IndexingFailureException using Java 7 - Atlassian JIRA

    atlassian.com | 1 year ago
    com.atlassian.jira.index.IndexingFailureException: Indexing completed with 3 errors
  2. 0

    h3. Summary Attempting to reindex JIRA fails with the below exception. This does not fail for *all* issues, only a couple. It also causes JIRA Agile's upgrade tasks to fail, as tracked in GHS-10348. h3. Environment * Java 7 h3. Steps to Reproduce # Restore an instance with problematic data. # Install JIRA Agile and upgrade. h3. Expected Results The reindex completes without error. h3. Actual Results The below exception is thrown: {noformat} 2014-02-04 11:31:28,768 JiraTaskExectionThread-2 ERROR admin 685x278x1 o72kxu 127.0.0.1 /secure/admin/jira/IndexReIndex.jspa [jira.util.index.CompositeIndexLifecycleManager] Reindex All FAILED. Indexer: DefaultIndexManager: paths: [/Users/dcurrie/deployments/jira617/jira-home/caches/indexes/comments, /Users/dcurrie/deployments/jira617/jira-home/caches/indexes/issues, /Users/dcurrie/deployments/jira617/jira-home/caches/indexes/changes] com.atlassian.jira.index.IndexingFailureException: Indexing completed with 3 errors at com.atlassian.jira.index.AccumulatingResultBuilder$CompositeResult.await(AccumulatingResultBuilder.java:147) at com.atlassian.jira.issue.index.DefaultIndexManager.doIndexIssuesInBatchMode(DefaultIndexManager.java:877) at com.atlassian.jira.issue.index.DefaultIndexManager.doStopTheWorldReindex(DefaultIndexManager.java:844) at com.atlassian.jira.issue.index.DefaultIndexManager.reIndexAll(DefaultIndexManager.java:307) at com.atlassian.jira.issue.index.DefaultIndexManager.reIndexAll(DefaultIndexManager.java:272) at com.atlassian.jira.issue.index.DefaultIndexManager.reIndexAll(DefaultIndexManager.java:267) <+3> (NativeMethodAccessorImpl.java:57) (DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at com.atlassian.util.profiling.object.ObjectProfiler.profiledInvoke(ObjectProfiler.java:83) at com.atlassian.jira.config.component.SwitchingInvocationHandler.invoke(SwitchingInvocationHandler.java:28) at com.sun.proxy.$Proxy140.reIndexAll(Unknown Source) at com.atlassian.jira.util.index.CompositeIndexLifecycleManager.reIndexAll(CompositeIndexLifecycleManager.java:56) at com.atlassian.jira.web.action.admin.index.ReIndexAsyncIndexerCommand.doReindex(ReIndexAsyncIndexerCommand.java:28) at com.atlassian.jira.web.action.admin.index.AbstractAsyncIndexerCommand.call(AbstractAsyncIndexerCommand.java:54) at com.atlassian.jira.web.action.admin.index.ReIndexAsyncIndexerCommand.call(ReIndexAsyncIndexerCommand.java:16) at com.atlassian.jira.web.action.admin.index.AbstractAsyncIndexerCommand.call(AbstractAsyncIndexerCommand.java:23) at com.atlassian.jira.task.TaskManagerImpl$TaskCallableDecorator.call(TaskManagerImpl.java:374) at java.util.concurrent.FutureTask.run(FutureTask.java:262) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) at java.util.concurrent.FutureTask.run(FutureTask.java:262) at com.atlassian.jira.task.ForkedThreadExecutor$ForkedRunnableDecorator.run(ForkedThreadExecutor.java:250) at java.lang.Thread.run(Thread.java:744) {noformat} Tracking back into the logs reveals that exceptions were thrown during the indexing (the timestamp on this log is different however it's the same problem): {noformat} 2014-03-08 21:07:32,716 JiraTaskExectionThread-1 WARN captain.planet 1267x112x1 h86sjy 74.57.203.161,127.0.0.1 /secure/admin/IndexReIndex.jspa [atlassian.jira.index.AccumulatingResultBuilder] java.util.concurrent.ExecutionException: java.lang.IllegalArgumentException: Comparison method violates its general contract! {noformat} h3. Notes It is important to note that indexing _mostly_ finishes. It seems to fail for one or more issues that throws that exception. h3.Solution Upgrade JIRA to 6.2.3+ using the instructions at [Upgrading JIRA|https://confluence.atlassian.com/display/JIRA/Upgrading+JIRA]. h3. Workaround # Some customers have reported that reindexing has worked after upgrading to Java 1.7_u51. To check if this works for you, download the new Java and declare your JAVA_HOME variable in {{bin/setenv.bat}} (Windows) or {{bin/setenv.sh}} before you restart JIRA. Downtime is required to restart JIRA and re-index. # Downgrade Java to 1.6, perform the index, then switch JIRA back to 1.7. We recommend to do this only do this if there is no other option. Switching to Java 6 will allow the issues to be indexed. Please note that Java 6 is not supported in later versions of JIRA as per [Supported Platforms|http://confluence.atlassian.com/display/JIRA/Supported+Platforms]. Downtime is required for two JIRA restarts and an indexing.

    Atlassian JIRA | 3 years ago | David Currie [Atlassian]
    com.atlassian.jira.index.IndexingFailureException: Indexing completed with 3 errors
  3. 0

    h3. Summary Attempting to reindex JIRA fails with the below exception. This does not fail for *all* issues, only a couple. It also causes JIRA Agile's upgrade tasks to fail, as tracked in GHS-10348. h3. Environment * Java 7 h3. Steps to Reproduce # Restore an instance with problematic data. # Install JIRA Agile and upgrade. h3. Expected Results The reindex completes without error. h3. Actual Results The below exception is thrown: {noformat} 2014-02-04 11:31:28,768 JiraTaskExectionThread-2 ERROR admin 685x278x1 o72kxu 127.0.0.1 /secure/admin/jira/IndexReIndex.jspa [jira.util.index.CompositeIndexLifecycleManager] Reindex All FAILED. Indexer: DefaultIndexManager: paths: [/Users/dcurrie/deployments/jira617/jira-home/caches/indexes/comments, /Users/dcurrie/deployments/jira617/jira-home/caches/indexes/issues, /Users/dcurrie/deployments/jira617/jira-home/caches/indexes/changes] com.atlassian.jira.index.IndexingFailureException: Indexing completed with 3 errors at com.atlassian.jira.index.AccumulatingResultBuilder$CompositeResult.await(AccumulatingResultBuilder.java:147) at com.atlassian.jira.issue.index.DefaultIndexManager.doIndexIssuesInBatchMode(DefaultIndexManager.java:877) at com.atlassian.jira.issue.index.DefaultIndexManager.doStopTheWorldReindex(DefaultIndexManager.java:844) at com.atlassian.jira.issue.index.DefaultIndexManager.reIndexAll(DefaultIndexManager.java:307) at com.atlassian.jira.issue.index.DefaultIndexManager.reIndexAll(DefaultIndexManager.java:272) at com.atlassian.jira.issue.index.DefaultIndexManager.reIndexAll(DefaultIndexManager.java:267) <+3> (NativeMethodAccessorImpl.java:57) (DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at com.atlassian.util.profiling.object.ObjectProfiler.profiledInvoke(ObjectProfiler.java:83) at com.atlassian.jira.config.component.SwitchingInvocationHandler.invoke(SwitchingInvocationHandler.java:28) at com.sun.proxy.$Proxy140.reIndexAll(Unknown Source) at com.atlassian.jira.util.index.CompositeIndexLifecycleManager.reIndexAll(CompositeIndexLifecycleManager.java:56) at com.atlassian.jira.web.action.admin.index.ReIndexAsyncIndexerCommand.doReindex(ReIndexAsyncIndexerCommand.java:28) at com.atlassian.jira.web.action.admin.index.AbstractAsyncIndexerCommand.call(AbstractAsyncIndexerCommand.java:54) at com.atlassian.jira.web.action.admin.index.ReIndexAsyncIndexerCommand.call(ReIndexAsyncIndexerCommand.java:16) at com.atlassian.jira.web.action.admin.index.AbstractAsyncIndexerCommand.call(AbstractAsyncIndexerCommand.java:23) at com.atlassian.jira.task.TaskManagerImpl$TaskCallableDecorator.call(TaskManagerImpl.java:374) at java.util.concurrent.FutureTask.run(FutureTask.java:262) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) at java.util.concurrent.FutureTask.run(FutureTask.java:262) at com.atlassian.jira.task.ForkedThreadExecutor$ForkedRunnableDecorator.run(ForkedThreadExecutor.java:250) at java.lang.Thread.run(Thread.java:744) {noformat} Tracking back into the logs reveals that exceptions were thrown during the indexing (the timestamp on this log is different however it's the same problem): {noformat} 2014-03-08 21:07:32,716 JiraTaskExectionThread-1 WARN captain.planet 1267x112x1 h86sjy 74.57.203.161,127.0.0.1 /secure/admin/IndexReIndex.jspa [atlassian.jira.index.AccumulatingResultBuilder] java.util.concurrent.ExecutionException: java.lang.IllegalArgumentException: Comparison method violates its general contract! {noformat} h3. Notes It is important to note that indexing _mostly_ finishes. It seems to fail for one or more issues that throws that exception. h3. Workaround Switching to Java 6 will allow the issues to be indexed. Please note that Java 6 is not supported in later versions of JIRA as per [Supported Platforms|http://confluence.atlassian.com/display/JIRA/Supported+Platforms].

    Atlassian JIRA | 3 years ago | Bryan Karsh
    com.atlassian.jira.index.IndexingFailureException: Indexing completed with 3 errors
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    h3. Summary Attempting to reindex JIRA fails with the below exception. This does not fail for *all* issues, only a couple. It also causes JIRA Agile's upgrade tasks to fail, as tracked in GHS-10348. h3. Environment * Java 7 h3. Steps to Reproduce # Restore an instance with problematic data. # Install JIRA Agile and upgrade. h3. Expected Results The reindex completes without error. h3. Actual Results The below exception is thrown: {noformat} 2014-02-04 11:31:28,768 JiraTaskExectionThread-2 ERROR admin 685x278x1 o72kxu 127.0.0.1 /secure/admin/jira/IndexReIndex.jspa [jira.util.index.CompositeIndexLifecycleManager] Reindex All FAILED. Indexer: DefaultIndexManager: paths: [/Users/dcurrie/deployments/jira617/jira-home/caches/indexes/comments, /Users/dcurrie/deployments/jira617/jira-home/caches/indexes/issues, /Users/dcurrie/deployments/jira617/jira-home/caches/indexes/changes] com.atlassian.jira.index.IndexingFailureException: Indexing completed with 3 errors at com.atlassian.jira.index.AccumulatingResultBuilder$CompositeResult.await(AccumulatingResultBuilder.java:147) at com.atlassian.jira.issue.index.DefaultIndexManager.doIndexIssuesInBatchMode(DefaultIndexManager.java:877) at com.atlassian.jira.issue.index.DefaultIndexManager.doStopTheWorldReindex(DefaultIndexManager.java:844) at com.atlassian.jira.issue.index.DefaultIndexManager.reIndexAll(DefaultIndexManager.java:307) at com.atlassian.jira.issue.index.DefaultIndexManager.reIndexAll(DefaultIndexManager.java:272) at com.atlassian.jira.issue.index.DefaultIndexManager.reIndexAll(DefaultIndexManager.java:267) <+3> (NativeMethodAccessorImpl.java:57) (DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at com.atlassian.util.profiling.object.ObjectProfiler.profiledInvoke(ObjectProfiler.java:83) at com.atlassian.jira.config.component.SwitchingInvocationHandler.invoke(SwitchingInvocationHandler.java:28) at com.sun.proxy.$Proxy140.reIndexAll(Unknown Source) at com.atlassian.jira.util.index.CompositeIndexLifecycleManager.reIndexAll(CompositeIndexLifecycleManager.java:56) at com.atlassian.jira.web.action.admin.index.ReIndexAsyncIndexerCommand.doReindex(ReIndexAsyncIndexerCommand.java:28) at com.atlassian.jira.web.action.admin.index.AbstractAsyncIndexerCommand.call(AbstractAsyncIndexerCommand.java:54) at com.atlassian.jira.web.action.admin.index.ReIndexAsyncIndexerCommand.call(ReIndexAsyncIndexerCommand.java:16) at com.atlassian.jira.web.action.admin.index.AbstractAsyncIndexerCommand.call(AbstractAsyncIndexerCommand.java:23) at com.atlassian.jira.task.TaskManagerImpl$TaskCallableDecorator.call(TaskManagerImpl.java:374) at java.util.concurrent.FutureTask.run(FutureTask.java:262) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) at java.util.concurrent.FutureTask.run(FutureTask.java:262) at com.atlassian.jira.task.ForkedThreadExecutor$ForkedRunnableDecorator.run(ForkedThreadExecutor.java:250) at java.lang.Thread.run(Thread.java:744) {noformat} Tracking back into the logs reveals that exceptions were thrown during the indexing (the timestamp on this log is different however it's the same problem): {noformat} 2014-03-08 21:07:32,716 JiraTaskExectionThread-1 WARN captain.planet 1267x112x1 h86sjy 74.57.203.161,127.0.0.1 /secure/admin/IndexReIndex.jspa [atlassian.jira.index.AccumulatingResultBuilder] java.util.concurrent.ExecutionException: java.lang.IllegalArgumentException: Comparison method violates its general contract! {noformat} h3. Notes It is important to note that indexing _mostly_ finishes. It seems to fail for one or more issues that throws that exception. h3.Solution Upgrade JIRA to 6.2.3+ using the instructions at [Upgrading JIRA|https://confluence.atlassian.com/display/JIRA/Upgrading+JIRA]. h3. Workaround # Some customers have reported that reindexing has worked after upgrading to Java 1.7_u51. To check if this works for you, download the new Java and declare your JAVA_HOME variable in {{bin/setenv.bat}} (Windows) or {{bin/setenv.sh}} before you restart JIRA. Downtime is required to restart JIRA and re-index. # Downgrade Java to 1.6, perform the index, then switch JIRA back to 1.7. We recommend to do this only do this if there is no other option. Switching to Java 6 will allow the issues to be indexed. Please note that Java 6 is not supported in later versions of JIRA as per [Supported Platforms|http://confluence.atlassian.com/display/JIRA/Supported+Platforms]. Downtime is required for two JIRA restarts and an indexing.

    Atlassian JIRA | 3 years ago | David Currie [Atlassian]
    com.atlassian.jira.index.IndexingFailureException: Indexing completed with 3 errors
  6. 0

    h3. Summary Attempting to reindex JIRA fails with the below exception. This does not fail for *all* issues, only a couple. It also causes JIRA Agile's upgrade tasks to fail, as tracked in GHS-10348. h3. Environment * Java 7 h3. Steps to Reproduce # Restore an instance with problematic data. # Install JIRA Agile and upgrade. h3. Expected Results The reindex completes without error. h3. Actual Results The below exception is thrown: {noformat} 2014-02-04 11:31:28,768 JiraTaskExectionThread-2 ERROR admin 685x278x1 o72kxu 127.0.0.1 /secure/admin/jira/IndexReIndex.jspa [jira.util.index.CompositeIndexLifecycleManager] Reindex All FAILED. Indexer: DefaultIndexManager: paths: [/Users/dcurrie/deployments/jira617/jira-home/caches/indexes/comments, /Users/dcurrie/deployments/jira617/jira-home/caches/indexes/issues, /Users/dcurrie/deployments/jira617/jira-home/caches/indexes/changes] com.atlassian.jira.index.IndexingFailureException: Indexing completed with 3 errors at com.atlassian.jira.index.AccumulatingResultBuilder$CompositeResult.await(AccumulatingResultBuilder.java:147) at com.atlassian.jira.issue.index.DefaultIndexManager.doIndexIssuesInBatchMode(DefaultIndexManager.java:877) at com.atlassian.jira.issue.index.DefaultIndexManager.doStopTheWorldReindex(DefaultIndexManager.java:844) at com.atlassian.jira.issue.index.DefaultIndexManager.reIndexAll(DefaultIndexManager.java:307) at com.atlassian.jira.issue.index.DefaultIndexManager.reIndexAll(DefaultIndexManager.java:272) at com.atlassian.jira.issue.index.DefaultIndexManager.reIndexAll(DefaultIndexManager.java:267) <+3> (NativeMethodAccessorImpl.java:57) (DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at com.atlassian.util.profiling.object.ObjectProfiler.profiledInvoke(ObjectProfiler.java:83) at com.atlassian.jira.config.component.SwitchingInvocationHandler.invoke(SwitchingInvocationHandler.java:28) at com.sun.proxy.$Proxy140.reIndexAll(Unknown Source) at com.atlassian.jira.util.index.CompositeIndexLifecycleManager.reIndexAll(CompositeIndexLifecycleManager.java:56) at com.atlassian.jira.web.action.admin.index.ReIndexAsyncIndexerCommand.doReindex(ReIndexAsyncIndexerCommand.java:28) at com.atlassian.jira.web.action.admin.index.AbstractAsyncIndexerCommand.call(AbstractAsyncIndexerCommand.java:54) at com.atlassian.jira.web.action.admin.index.ReIndexAsyncIndexerCommand.call(ReIndexAsyncIndexerCommand.java:16) at com.atlassian.jira.web.action.admin.index.AbstractAsyncIndexerCommand.call(AbstractAsyncIndexerCommand.java:23) at com.atlassian.jira.task.TaskManagerImpl$TaskCallableDecorator.call(TaskManagerImpl.java:374) at java.util.concurrent.FutureTask.run(FutureTask.java:262) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) at java.util.concurrent.FutureTask.run(FutureTask.java:262) at com.atlassian.jira.task.ForkedThreadExecutor$ForkedRunnableDecorator.run(ForkedThreadExecutor.java:250) at java.lang.Thread.run(Thread.java:744) {noformat} Tracking back into the logs reveals that exceptions were thrown during the indexing (the timestamp on this log is different however it's the same problem): {noformat} 2014-03-08 21:07:32,716 JiraTaskExectionThread-1 WARN captain.planet 1267x112x1 h86sjy 74.57.203.161,127.0.0.1 /secure/admin/IndexReIndex.jspa [atlassian.jira.index.AccumulatingResultBuilder] java.util.concurrent.ExecutionException: java.lang.IllegalArgumentException: Comparison method violates its general contract! {noformat} h3. Notes It is important to note that indexing _mostly_ finishes. It seems to fail for one or more issues that throws that exception. h3. Workaround Switching to Java 6 will allow the issues to be indexed. Please note that Java 6 is not supported in later versions of JIRA as per [Supported Platforms|http://confluence.atlassian.com/display/JIRA/Supported+Platforms].

    Atlassian JIRA | 3 years ago | Bryan Karsh
    com.atlassian.jira.index.IndexingFailureException: Indexing completed with 3 errors

    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. com.atlassian.jira.index.IndexingFailureException

      Indexing completed with 3 errors

      at com.atlassian.jira.index.AccumulatingResultBuilder$CompositeResult.await()
    2. com.atlassian.jira
      DefaultIndexManager.reIndexAll
      1. com.atlassian.jira.index.AccumulatingResultBuilder$CompositeResult.await(AccumulatingResultBuilder.java:147)
      2. com.atlassian.jira.issue.index.DefaultIndexManager.doIndexIssuesInBatchMode(DefaultIndexManager.java:877)
      3. com.atlassian.jira.issue.index.DefaultIndexManager.doStopTheWorldReindex(DefaultIndexManager.java:844)
      4. com.atlassian.jira.issue.index.DefaultIndexManager.reIndexAll(DefaultIndexManager.java:307)
      5. com.atlassian.jira.issue.index.DefaultIndexManager.reIndexAll(DefaultIndexManager.java:272)
      5 frames