Details
-
Bug
-
Resolution: Unresolved
-
Medium
-
None
-
8.20.3, 8.20.10, 8.20.12, 9.4.1
-
8.2
-
28
-
Severity 3 - Minor
-
25
-
Description
Issue Summary
When the number of labels is high, it takes 5+ seconds to load suggestions.
It is checked on GSAC and it takes around 20 seconds to load label suggestions
This is reproducible on Data Center: Yes
Steps to Reproduce
- Create 200K labels for different issues
- Open an issue
- Click the Pencil icon to edit Labels
- Click the arrow to see label suggestions
More details around the reproduction steps in Internal comment
The same happens if you configure an Advanced Roadmaps Plan and add the Labels field to the Plan. Upon clicking on the Labels cell, Jira will fire a request to /rest/jpo/1.0/labels that'll take too long to respond.
Expected Results
The Label suggestions should be listed immediately.
Actual Results
- From thread dumps, it looks like we’re we’re loading ALL the UNIQUE labels first - followed by sorting the most used ones:
at com.atlassian.jira.web.bean.StatisticAccessorBean.getWrapper(StatisticAccessorBean.java:126) at com.atlassian.jira.web.bean.StatisticAccessorBean.getAllFilterBy(StatisticAccessorBean.java:283) at com.atlassian.jira.issue.label.suggestions.PopularLabelsProvider.findMostPopular(PopularLabelsProvider.java:20) at com.atlassian.jira.issue.label.suggestions.LabelSuggester.getSuggestions(LabelSuggester.java:55) at com.atlassian.jira.issue.label.suggestions.LabelSuggester.getSuggestedLabels(LabelSuggester.java:26) at com.atlassian.jira.issue.label.DefaultLabelManager.getSuggestedLabels(DefaultLabelManager.java:149) at com.atlassian.jira.bc.issue.label.DefaultLabelService.getSuggestedLabels(DefaultLabelService.java:178)
- As Jira scales (No. of labels and No. of issues the labels are used in) the response time to load the suggested labels grows linearly slower:
Workaround
The only currently workaround available is to identify the expensive and CPU consuming Label autocomplete suggestions requests to Jira and block them either on the Proxy / Load Balancer or in Jira's urlrewrite:
Those are usually the requests with empty values (0 inputted characters).
Note:
If you come across this issue - please comment on this bug with the following SQL outputs which could further help us with the size profiles general customer environments:
SELECT COUNT(*) FROM label;
SELECT COUNT(DISTINCT l.label) FROM label l;
SELECT count(*) from "label" l group by l."label" order by count DESC limit 10;
Attachments
Issue Links
- relates to
-
JRASERVER-73028 Portfolio plan load performance is impacted when a custom filed of type label is used in configuration.
- Gathering Impact
- split to
-
JRASERVER-77566 Label suggestions with empty input are too slow on systems with many labels
- Closed
- is related to
-
PSR-880 Loading...
- mentioned in
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...