From b37471e7974cda3d3d363f46862f263e4476c347 Mon Sep 17 00:00:00 2001 From: Jacek Date: Fri, 22 Apr 2022 09:31:53 +0200 Subject: [PATCH] SONAR-16232 Add Thread interrupt in blame command --- .../src/main/java/org/sonar/scm/git/CompositeBlameCommand.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sonar-scanner-engine/src/main/java/org/sonar/scm/git/CompositeBlameCommand.java b/sonar-scanner-engine/src/main/java/org/sonar/scm/git/CompositeBlameCommand.java index 85f0bb26949..0bc735dc44b 100644 --- a/sonar-scanner-engine/src/main/java/org/sonar/scm/git/CompositeBlameCommand.java +++ b/sonar-scanner-engine/src/main/java/org/sonar/scm/git/CompositeBlameCommand.java @@ -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(); } } } -- 2.39.5