From b37af81b985cfd798fff15ebc02e8510a8e16890 Mon Sep 17 00:00:00 2001 From: Noemi Praml Date: Thu, 22 May 2025 13:43:05 +0200 Subject: [PATCH] thread interrupted --- .../java/io/ebean/datasource/pool/PooledConnectionQueue.java | 3 +++ 1 file changed, 3 insertions(+) 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 85d8167e..d5552c3c 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) {