Uploaded image for project: 'SonarQube Scanner API'
  1. SonarQube Scanner API
  2. SCANNERAPI-78

Prevent concurrent execution of the runner from the same working directory

    XMLWordPrintable

    Details

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

      Description

      Because of SONARPLUGINS-1233 we are now removing the working directory at the very beginning of SQ Runner execution. As a result if two concurrent execution are run the second execution may delete files used by the other one.
      We should find a way to prevent concurrent executions with the same working directory.

      http://sonarqube.15.x6.nabble.com/sonar-runner-weeps-working-files-of-a-running-sonar-runner-and-thus-breaks-it-tp5023215.html

      We could consider using http://docs.oracle.com/javase/1.5.0/docs/api/java/nio/channels/FileLock.html

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              fabemn OLD - Fabrice Bellingard
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: