Details
-
Bug
-
Resolution: Fixed
-
Medium
-
4.4.3
-
SAC Ticket: https://support.atlassian.com/browse/JSP-94497
-
4.04
-
Description
Symptom:
When attempting a Bulk Edit, the browser will freeze before the Step 3 of 4 screen appears.
Diagnosis:
For differential diagnosis, create a new project with only one (or very few) issue(s).
- Test by giving the jira-users group the Assignable Users permission for this project.
- Bulk edit should NOT work in this project.
- Test again by reducing Assignable Users to only one user.
- Bulk edit should return to normal.
Workaround:
As this is an issue that is borne out of the Assignable User Picker, the currently recommended workaround is to limit the number of assignable users by using permissions to pare it down to the smallest group possible.
From the ticket:
Bulk Edit is broken due to following line of code in getAssigneeOptionsList(BulkEditBean bulkEditBean) method of AssigneeSystemField.java:
users.retainAll(getAssignableUsers(bulkEditBean, issue));
getAssignableUsers(bulkEditBean, issue) method returns Collection <User> object. Therefore, the above code is invoking Collection.retainAll(Collection). Collection.retainAll(Collection) implementations aren't optimized.
When a sufficiently large collection is used as an argument, the performance is pathologically slow. This is a known Issue in JAVA. Please check following bug:
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=5028425
Performance can be optimized by transforming collection argument to HashSet. Cast return value of getAssignableUsers(bulkEditBean, issue) method to HastSet.
private Collection<User> getAssignableUsers(OperationContext operationContext, Issue issue)
{ return new HashSet<User>(uniqueUsers.values()); }Please ask JIRA developers to verify this solution.
Attachments
Issue Links
- is duplicated by
-
JRASERVER-28622 Bulk Change operations are very slow with large number of assignable users
- Closed
-
JRASERVER-26098 Bulk Edit assignee list performance limitation due to using CollectionList
- Closed
-
JRASERVER-26099 Bulk Edit assignee list performance limitation due to using CollectionList
- Closed
-
JRASERVER-29611 Severe performance degradation of "Bulk Edit" as "Assignable Users" increases
- Closed
- is related to
-
JRASERVER-38139 Uppercase names in JIRA browse users feature caused slowness
- Closed
- copied to
-
JRADEV-14954 Loading...
- mentioned in
-
Page Loading...