You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by hx...@apache.org on 2020/02/08 14:38:59 UTC

[incubator-iotdb] branch ut_close_socket created (now 9fab09b)

This is an automated email from the ASF dual-hosted git repository.

hxd pushed a change to branch ut_close_socket
in repository https://gitbox.apache.org/repos/asf/incubator-iotdb.git.


      at 9fab09b  enable warn level log for UTs

This branch includes the following new commits:

     new 9fab09b  enable warn level log for UTs

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



[incubator-iotdb] 01/01: enable warn level log for UTs

Posted by hx...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

hxd pushed a commit to branch ut_close_socket
in repository https://gitbox.apache.org/repos/asf/incubator-iotdb.git

commit 9fab09b824632311da7698b8a30438155d2759ee
Author: xiangdong huang <sa...@gmail.com>
AuthorDate: Sat Feb 8 22:38:39 2020 +0800

    enable warn level log for UTs
---
 server/src/main/java/org/apache/iotdb/db/service/JDBCService.java | 6 +++---
 server/src/test/resources/logback.xml                             | 2 +-
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/server/src/main/java/org/apache/iotdb/db/service/JDBCService.java b/server/src/main/java/org/apache/iotdb/db/service/JDBCService.java
index d4ebd55..99fb8d9 100644
--- a/server/src/main/java/org/apache/iotdb/db/service/JDBCService.java
+++ b/server/src/main/java/org/apache/iotdb/db/service/JDBCService.java
@@ -220,10 +220,10 @@ public class JDBCService implements JDBCServiceMBean, IService {
         poolServer.setServerEventHandler(new JDBCServiceEventHandler(impl, threadStartLatch));
         poolServer.serve();
       } catch (TTransportException e) {
-        logger.error("{}: failed to start {}, because ", IoTDBConstant.GLOBAL_DB_NAME,
-            getID().getName(), e);
+        throw new RuntimeException(String.format("%s: failed to start %s, because ", IoTDBConstant.GLOBAL_DB_NAME,
+            getID().getName()), e);
       } catch (Exception e) {
-        logger.error("{}: {} exit, because ", IoTDBConstant.GLOBAL_DB_NAME, getID().getName(), e);
+        throw new RuntimeException(String.format("%s: %s exit, because ", IoTDBConstant.GLOBAL_DB_NAME, getID().getName()), e);
       } finally {
         close();
         // TODO debug log, will be deleted in production env
diff --git a/server/src/test/resources/logback.xml b/server/src/test/resources/logback.xml
index 0eaf9fe..b33456a 100644
--- a/server/src/test/resources/logback.xml
+++ b/server/src/test/resources/logback.xml
@@ -35,7 +35,7 @@
     </appender>
     <!--<logger name="org.apache.iotdb.db.utils.OpenFileNumUtil" level="debug" />-->
     <!--<logger name="org.apache.iotdb.db.utils.OpenFileNumUtilTest" level="debug" />-->
-    <root level="ERROR">
+    <root level="WARN">
         <appender-ref ref="stdout"/>
     </root>
 </configuration>