Uploaded image for project: 'Jira Platform Cloud'
  1. Jira Platform Cloud
  2. JRACLOUD-72006

Operation on worklogs may results in inconsistent timespent when done in parallel

XMLWordPrintable

      Summary

      When a specific JIRA issue worklog is being filled concurrently from different sources at the same time, some worklog entries are missed; resulting in inaccurate timespent value. In the case where the user also uses Tempo timetracking, there is a difference between JIRA's timespent and Tempo's.

      Steps to Reproduce

      1. Create an integrated system that operates in Jira
      2. Do several work logs operations such as adding work logs to the same issue

      Expected Results

      The time spent of the issue (shown as logged in time tracking panel) equals the sum of all existing work logs.

      Actual Results

      Because the time spent is stored separately and there isn't a control of parallel changes in that, it may not be equal to the sum of work logged.

      Notes

      We carried out 2 tests:

      1. A script run twice sequentially (waiting for first run to finish to start another one) where we add 60 seconds of work logs 100 times
      2. Same as above, but both are run at the same time in parallel

      In both cases we expected 12000 seconds of time spent on that issue and that is what we got in the first test, but we got 9840 on the second as in some cases, the creation of a work log interfered with another running at the same time.

      Workaround

      No perfect workaround, but avoiding running 2 work logs operations in the same issue prevents this problem.

              66db64b21692 Ankur Sheel
              vchin Vincent Chin (Inactive)
              Votes:
              24 Vote for this issue
              Watchers:
              32 Start watching this issue

                Created:
                Updated:
                Resolved: