diff --git a/ebean-datasource/src/main/java/io/ebean/datasource/pool/PooledConnectionQueue.java b/ebean-datasource/src/main/java/io/ebean/datasource/pool/PooledConnectionQueue.java index 85d8167..d5552c3 100644 --- a/ebean-datasource/src/main/java/io/ebean/datasource/pool/PooledConnectionQueue.java +++ b/ebean-datasource/src/main/java/io/ebean/datasource/pool/PooledConnectionQueue.java @@ -246,6 +246,9 @@ private int registerBusyConnection(PooledConnection connection) { private PooledConnection _obtainConnection(Object affinitiyId) throws InterruptedException, SQLException { var start = System.nanoTime(); + if (Thread.interrupted()) { + throw new InterruptedException(); + } lock.lockInterruptibly(); try { if (doingShutdown) {