Reindexing Failed "com.atlassian.jira.index.IndexingFailureException: Indexing completed with 1 errors"

Still need help?

The Atlassian Community is here for you.

Ask the community

PROBLEM

The issue started after upgrading to JIRA 6.4.x. The following errors are showing on the logs when reindexing

 

2015-08-12 09:49:30,920 JiraTaskExectionThread-1 WARN admin 589x352x1 1n2d17j 213.190.43.95 /secure/admin/jira/IndexReIndex.jspa [atlassian.jira.index.AccumulatingResultBuilder] Indexing failed for Issue - 'xxxxx'
2015-08-12 09:49:30,920 JiraTaskExectionThread-1 WARN admin 589x352x1 1n2d17j 213.190.43.95 /secure/admin/jira/IndexReIndex.jspa [atlassian.jira.index.AccumulatingResultBuilder] java.lang.IllegalArgumentException: LocalDate only handles the Common Era - no BC dates are allowed.
java.lang.RuntimeException: java.lang.IllegalArgumentException: LocalDate only handles the Common Era - no BC dates are allowed.
	at com.atlassian.jira.index.DefaultIndex$Failure.<init>(DefaultIndex.java:123)
	at com.atlassian.jira.issue.index.DefaultIssueIndexer$IndexIssuesOperation.perform(DefaultIssueIndexer.java:452)
	at com.atlassian.jira.issue.index.DefaultIssueIndexer$IndexIssuesOperation.perform(DefaultIssueIndexer.java:412)
...
2015-08-12 09:51:25,026 JiraTaskExectionThread-1 ERROR admin 589x352x1 1n2d17j 213.190.43.95 /secure/admin/jira/IndexReIndex.jspa [jira.util.index.CompositeIndexLifecycleManager] Reindex All FAILED.  Indexer: DefaultIndexManager: paths: [C:\Program Files\Atlassian\Application Data\JIRA\caches\indexes\comments, C:\Program Files\Atlassian\Application Data\JIRA\caches\indexes\issues, C:\Program Files\Atlassian\Application Data\JIRA\caches\indexes\changes, C:\Program Files\Atlassian\Application Data\JIRA\caches\indexes\worklogs, C:\Program Files\Atlassian\Application Data\JIRA\caches\indexes\plugins\atlassian-subversion-revisions]
com.atlassian.jira.index.IndexingFailureException: Indexing completed with 1 errors
	at com.atlassian.jira.index.AccumulatingResultBuilder$CompositeResult.await(AccumulatingResultBuilder.java:192)
	at com.atlassian.jira.issue.index.DefaultIndexManager.doIndexIssuesInBatchMode(DefaultIndexManager.java:1169)
	at com.atlassian.jira.issue.index.DefaultIndexManager.doStopTheWorldReindex(DefaultIndexManager.java:1136)


DIAGNOSIS

The below troubleshooting steps didn't help:

  1. Checked from the database if the value of the date fields are set in BC but the database looks fine.
  2. Deleted indexes and then re-indexed but it didn't change anything
  3. Not reproducible when restoring customer's data

RESOLUTION

If all the resolutions mentioned in Troubleshoot a reindex failure in Jira server didn't work then, we can try to:

  1. Clone the issue with an ID 'xxxxx'
  2. Delete the issue with an ID 'xxxxx' after cloning.
  3. Perform Reindexing
  4. Check the logs and see if the same error will appear.
    • If it is, check where the indexing fails and see if it is still referencing to the cloned issue.
    • If yes, export that cloned issue to CSV file (to keep a backup file) and then delete the cloned issue.
    • Try to reindex again and see if that would resolve the issue.
    • If everything works fine after deleting the issue, you can either manually add the issue from CSV or import the issue via CSV.

 

Last modified on Nov 2, 2018

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.