You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by ha...@apache.org on 2021/11/03 07:47:10 UTC
[iotdb] branch master updated: [ISSUE-4293] SessionPool:
InterruptedException is not properly handled in synchronized wait() (#4295)
This is an automated email from the ASF dual-hosted git repository.
haonan pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/iotdb.git
The following commit(s) were added to refs/heads/master by this push:
new af8b3dc [ISSUE-4293] SessionPool: InterruptedException is not properly handled in synchronized wait() (#4295)
af8b3dc is described below
commit af8b3dc865435f3f99c5c2564ab0219496d9507d
Author: Steve Yurong Su <ro...@apache.org>
AuthorDate: Wed Nov 3 15:46:39 2021 +0800
[ISSUE-4293] SessionPool: InterruptedException is not properly handled in synchronized wait() (#4295)
---
session/src/main/java/org/apache/iotdb/session/pool/SessionPool.java | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/session/src/main/java/org/apache/iotdb/session/pool/SessionPool.java b/session/src/main/java/org/apache/iotdb/session/pool/SessionPool.java
index f25d1c8..fcf05ea 100644
--- a/session/src/main/java/org/apache/iotdb/session/pool/SessionPool.java
+++ b/session/src/main/java/org/apache/iotdb/session/pool/SessionPool.java
@@ -238,8 +238,7 @@ public class SessionPool {
}
}
} catch (InterruptedException e) {
- logger.error("the SessionPool is damaged", e);
- Thread.currentThread().interrupt();
+ // wake up from this.wait(1000) by this.notify()
}
session = queue.poll();