Uploaded image for project: 'Jira Data Center'
  1. Jira Data Center
  2. JRASERVER-26097

Bulk Edit assignee list performance limitation due to using CollectionList

    XMLWordPrintable

Details

    Description

      Notes from Support

      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

          Activity

            People

              edalgliesh Eric Dalgliesh
              tdavis TylerA
              Votes:
              8 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: