]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-16232 Add Thread interrupt in blame command
authorJacek <jacek.poreda@sonarsource.com>
Fri, 22 Apr 2022 07:31:53 +0000 (09:31 +0200)
committersonartech <sonartech@sonarsource.com>
Fri, 22 Apr 2022 20:03:03 +0000 (20:03 +0000)
sonar-scanner-engine/src/main/java/org/sonar/scm/git/CompositeBlameCommand.java

index 85f0bb269493ca64418c5ced933e58c56393856f..0bc735dc44bda0ca1d794c91d0de081fa56d02f7 100644 (file)
@@ -84,7 +84,8 @@ public class CompositeBlameCommand extends BlameCommand {
       try {
         executorService.awaitTermination(Long.MAX_VALUE, TimeUnit.SECONDS);
       } catch (InterruptedException e) {
-        LOG.info("Git blame interrupted");
+        LOG.info("Git blame interrupted", e);
+        Thread.currentThread().interrupt();
       }
     }
   }