Uploaded image for project: 'Xray for Jira'
  1. Xray for Jira
  2. XRAY-3934

Asynchronous EventListeners are being called multiple times when not needed.

    XporterXMLWordPrintable

Details

    • Performance Improvement
    • Status: Waiting Approval
    • Major
    • Resolution: Unresolved
    • R3.3.6
    • None
    • Custom Fields
    • UNCOVERED

    Description

      Some Xray actions are triggering asynchronous events multiple times. In long-running tasks like the pre-calculation of Requirement Status, this may lead to unnecessary operations occupying a large number of available threads.

      Taking the TestSetsCustomField.java as an example, it'll trigger the pre-calculation:

      • 1 T + N TS times;
      • N (1 T + 1 TS) times;

      where N is the number of Test Sets associated with the Test.

      In sum:

      • the requirements dependant of that specific Test are pre-calculated N + 1 times.
      • the requirements dependant of the linked Test Sets are pre-calculated N + N times.
      • Xray will be using 1 + N threads.

      All operations that trigger this kind of events should be analyzed.

      Attachments

        Activity

          People

            dpca Diamantino Campos
            nmms Nuno Santos [X] (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: