Uploaded image for project: 'AUT (Public Tracker) - Automation for JIRA'
  1. AUT-852

Counter service is not concurrency safe and can result in same value being returned twice

    Details

    • Type: Bug
    • Status: Done
    • Resolution: Done
    • Affects versions: None
    • Fix versions: None
    • Labels:
    • Links:
      1

      Description

      This may result in round-robin assigning doubling up assignees.

      Need to check the store in both server & cloud.

      Basically this should change:

      dbConnection.update(counters)
                              .set(counters.count, returnValue)
      
      //TO
      
      dbConnection.update(counters)
                              .set(counters.count, counters.count.add(1))
      

      May also have to deal with duplicate inserts if there isn't a value yet.

        Attachments

          Activity

            People

            • Assignee:
              nick Nick Menere
              Reporter:
              admin Andreas Knecht
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: