Skip to content

Commit 0e91ea5

Browse files
committed
Debug intrrupted thread
1 parent 77ea905 commit 0e91ea5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

core/deployment/src/main/java/io/quarkus/deployment/pkg/steps/JarTreeShakeInput.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -707,6 +707,10 @@ static class BytecodeSupplier implements Supplier<byte[]> {
707707

708708
@Override
709709
public byte[] get() {
710+
if (Thread.currentThread().isInterrupted()) {
711+
log.warnf("Thread %s has interrupt flag set before reading %s",
712+
Thread.currentThread().getName(), path);
713+
}
710714
try (InputStream is = Files.newInputStream(path)) {
711715
return is.readAllBytes();
712716
} catch (IOException e) {

0 commit comments

Comments
 (0)