You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by do...@apache.org on 2019/02/21 16:29:22 UTC
[incubator-iotdb] branch master updated: fix cannot close jdbc
service bug (#57)
This is an automated email from the ASF dual-hosted git repository.
dope pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-iotdb.git
The following commit(s) were added to refs/heads/master by this push:
new 16adc4e fix cannot close jdbc service bug (#57)
16adc4e is described below
commit 16adc4e493532871684a64f27e649f9560ecf08c
Author: XuYi <My...@users.noreply.github.com>
AuthorDate: Fri Feb 22 00:29:18 2019 +0800
fix cannot close jdbc service bug (#57)
---
iotdb/src/main/java/org/apache/iotdb/db/service/JDBCService.java | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/iotdb/src/main/java/org/apache/iotdb/db/service/JDBCService.java b/iotdb/src/main/java/org/apache/iotdb/db/service/JDBCService.java
index 86293c7..c898fe9 100644
--- a/iotdb/src/main/java/org/apache/iotdb/db/service/JDBCService.java
+++ b/iotdb/src/main/java/org/apache/iotdb/db/service/JDBCService.java
@@ -200,6 +200,9 @@ public class JDBCService implements JDBCServiceMBean, IService {
LOGGER.error("{}: {} exit, because ", IoTDBConstant.GLOBAL_DB_NAME, getID().getName(), e);
} finally {
close();
+ if (threadStopLatch != null && threadStopLatch.getCount() == 1) {
+ threadStopLatch.countDown();
+ }
LOGGER.info("{}: close TThreadPoolServer and TServerSocket for {}",
IoTDBConstant.GLOBAL_DB_NAME,
getID().getName());
@@ -215,9 +218,6 @@ public class JDBCService implements JDBCServiceMBean, IService {
serverTransport.close();
serverTransport = null;
}
- if (threadStopLatch.getCount() == 1) {
- threadStopLatch.countDown();
- }
}
}
}