Introducing safeguards to Jira index
プラットフォームについて: サーバーと Data Center のみ。この記事は、サーバーおよび Data Center プラットフォームのアトラシアン製品にのみ適用されます。
Check What's changed in Jira after the implementation of indexing limits for common questions related to indexing limits and differences in the way Jira works since the update.
JRASERVER-73874 - 課題詳細を取得中... ステータス
Starting from 8.22.2 (backported to 8.20.12), Jira will index only
topN of the following issue-related entities: comments, changehistory, and worklog. Any reindexing operation that triggers full issue reindex, including full foreground reindex and indexer#reindex(issue, all), will reindex a limited number of
topN of related entities. The
topN value can be any integer.
This feature is enabled by default with the following limits set to related entities (comments, changehistory, and worklog):
|Jira バージョン||Limit for comments||Limit for changehistory||Limit for worklog|
Based on specific use cases, Jira admins can change default
topN values for these entities by setting a Java property to the desired limit. System property names for issue entities:
- For comments:
- For change history items:
- For worklogs:
It’s also possible to disable the feature by setting the corresponding system property to -1.
For example on how to change one of these properties, please refer to the KB article How to change Indexing Limit Safeguards in Jira.
As part of the feature, we’ve added stats to help you gather information around the indexing of issue-related entities. You can find more details here: Jira indexing-limits stats.
Introducing limits to change items indexing
Jira 8.22.3 also introduces updates to the way indexing works. In this release, we’ve extended the functionality of Safeguards in Jira index that changes the default behavior of change items indexing.
Change items with unsupported fields will be filtered out before they’re collected into change groups. As a result, when there’s a group of change items with unsupported fields only, it won’t be indexed. So, no document will be created for it in the database.
The feature is enabled by default with the limit of six fields in the change items index:
In specific use cases, Jira administrators can change the default behavior. For example, when there’s a need to use the UpdatedBy JQL function, Jira administrator can configure the following system property:
Consider the following:
- If this system property isn’t set up, change items with unsupported fields will be filtered out. This is the default behavior.
- If this system property is set to "true", unsupported fields won’t be filtered out.
- The number of indexed change groups will be limited to
- To enable the old search functionality for historical changes, use the mentioned system property along with
jira.safeguards.indexing.issue.changelogs(it defines how many groups should be indexed).
If unsupported fields aren’t filtered out, this may cause performance degradation for large issues. You can identify issues with large change items and change groups by running a database query. For details, see Retrieve issue change history from database in Jira server.