Uploaded image for project: 'SonarLint Core Library'
  1. SonarLint Core Library
  2. SLCORE-304

Don't hold the local storage lock when fetching server issues

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 8.0
    • Component/s: None
    • Labels:
      None

      Description

      In ConnectedSonarLintEngineImpl.downloadServerIssues() (x2 methods), we acquire the local storage write lock before trying to download issues. If the server takes time to answer, the lock is hold unnecessarily. We should fetch the issues out of the lock section, and then store them in the lock section.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              damien.urruty Damien Urruty
              Reporter:
              damien.urruty Damien Urruty
              Votes:
              3 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: