As an JIRA Administrator I want to have 2 phases reindexing for Calculated fields

XMLWordPrintable

    • Type: Suggestion
    • Resolution: Unresolved
    • None
    • Component/s: Indexing
    • 4
    • 30

      Problem Definition

      One of major features of custom fields is to calculate its value based on another data. In some cases this calculation is based on Lucene search.
      It works fine when JIRA has valid Lucene. But it's broken during Full reindex, since there is no data in Lucene (catch22 problem).

      Suggested Solution

      Reindexing algorithm in JIRA should be changed and include 2 phases:

      1. JIRA should run normal reindex for all Custom Fields, except the calculated
      2. Then it should run additional reindex phase for all calculated fields.

      Workaround

      1. Disable the calculated Lucene dependent field (if some cases you can disable the search part only, eg ScriptRunner ScriptedFields see jql_searches_in_script_fields)
      2. Run full reindex
      3. Enable the field
      4. Run background re-index. (Please note that background will affect performance and heavily fragment Lucene)

      Alternative Workaround:
      Put JIra in safe mode, perform full re-index and run background re-index

              Assignee:
              Unassigned
              Reporter:
              Andriy Yakovlev [Atlassian] (Inactive)
              Votes:
              58 Vote for this issue
              Watchers:
              44 Start watching this issue

                Created:
                Updated: