Indexing fails due to immense field

お困りですか?

アトラシアン コミュニティをご利用ください。

コミュニティに質問



プラットフォームについて: Server および Data Center のみ。この記事は、Server および Data Center プラットフォームのアトラシアン製品にのみ適用されます。

Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.

*Fisheye および Crucible は除く


問題

Both background and foreground reindex requests fail due to a field that has more than 32766 bytes in the field. 

The following appears in the atlassian-jira.log

2019-07-02 16:32:24,247 IssueIndexer:thread-9 WARN 10.x.x.x /secure/admin/jira/IndexReIndex!reindex.jspa [c.a.jira.index.AccumulatingResultBuilder] Document contains at least one immense term in field="<fieldname>" (whose UTF8 encoding is longer than the max length 32766), all of which were skipped. Please correct the analyzer to not produce such terms. The prefix of the first immense term is: '[list of entries in the field]...', original message: bytes can be at most 32766 in length; got 32767
2019-07-02 16:32:24,248 JiraTaskExectionThread-2 WARN 10.x.x.x /secure/admin/jira/IndexReIndex!reindex.jspa [c.a.jira.index.AccumulatingResultBuilder] Indexing failed for Issue - '<#####>'

診断

環境

  • This affects JIRA 8.0 and above.

  • In JIRA 8.0, Lucene was upgraded from 3.3 to 7.3.  Lucene will now throw an exception instead of silently failing. 
  • See Lucene upgrade for more information.

原因

Lucene limits the length of indexed fields to 32766 bytes.  Fields that are continually incremented (such as SLA, individual permissions, or customfields) have a higher likelihood of exceeding the length limit.  The application and the database allow these to increment and do not limit the field length, but Lucene cannot parse those immense fields that exceed the byte length, so it fails to index that field.  

In older versions of Lucene, it would silent fail, but after LUCENE-5472 this will throw an exception.  

回避策

There is no workaround at this time. 

There is an open bug report:  JSWSERVER-20133 - Getting issue details... STATUS

If you are affected by this issue, please go to the bug and click on "This affects my team."

ソリューション

In order to allow indexing to run, you must either truncate, disable, or delete the problematic field.  

  • If the field is managed by a plugin, you can disable that plugin.

  • Limit the input points.  For example, if the error indicates a permission field, limit the individuals or groups that are included in the permission field.  

  • If it is a customfield that is no longer needed, remove it from active screens then trim it in the database.  


説明 Indexing fails due to immense field
製品JIRA Cloud, JIRA Data Center, JIRA Core, JIRA Service Desk, JIRA Software, Confluence



最終更新日 2019 年 7 月 5 日

この内容はお役に立ちましたか?

はい
いいえ
この記事についてのフィードバックを送信する
Powered by Confluence and Scroll Viewport.