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/17 15:43:16 UTC

[incubator-iotdb] branch ut_close_socket updated: try to connect 6667 to check whether the socket is closed

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


The following commit(s) were added to refs/heads/ut_close_socket by this push:
     new b453bba  try to connect 6667 to check whether the socket is closed
b453bba is described below

commit b453bbae93e0885e21d835d1230634675a958553
Author: xiangdong huang <sa...@gmail.com>
AuthorDate: Mon Feb 17 23:42:46 2020 +0800

    try to connect 6667 to check whether the socket is closed
---
 server/src/test/java/org/apache/iotdb/db/utils/EnvironmentUtils.java | 1 +
 1 file changed, 1 insertion(+)

diff --git a/server/src/test/java/org/apache/iotdb/db/utils/EnvironmentUtils.java b/server/src/test/java/org/apache/iotdb/db/utils/EnvironmentUtils.java
index 8c4f931..28d5e99 100644
--- a/server/src/test/java/org/apache/iotdb/db/utils/EnvironmentUtils.java
+++ b/server/src/test/java/org/apache/iotdb/db/utils/EnvironmentUtils.java
@@ -80,6 +80,7 @@ public class EnvironmentUtils {
       try {
         transport.open();
         logger.error("stop daemon failed. 6667 can be connected now.");
+        transport.close();
       } catch (TTransportException e) {
       }
     }