You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kylin.apache.org by li...@apache.org on 2016/04/29 12:13:26 UTC
kylin git commit: KYLIN-1634 fix unclosed streams
Repository: kylin
Updated Branches:
refs/heads/master 1357847f5 -> 8f584dd41
KYLIN-1634 fix unclosed streams
Project: http://git-wip-us.apache.org/repos/asf/kylin/repo
Commit: http://git-wip-us.apache.org/repos/asf/kylin/commit/8f584dd4
Tree: http://git-wip-us.apache.org/repos/asf/kylin/tree/8f584dd4
Diff: http://git-wip-us.apache.org/repos/asf/kylin/diff/8f584dd4
Branch: refs/heads/master
Commit: 8f584dd414e7168680d1990bc4fa1c9a34cd4712
Parents: 1357847
Author: Li Yang <li...@apache.org>
Authored: Fri Apr 29 18:13:11 2016 +0800
Committer: Li Yang <li...@apache.org>
Committed: Fri Apr 29 18:13:11 2016 +0800
----------------------------------------------------------------------
.../src/main/java/org/apache/kylin/common/util/SSHClient.java | 2 ++
1 file changed, 2 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/kylin/blob/8f584dd4/core-common/src/main/java/org/apache/kylin/common/util/SSHClient.java
----------------------------------------------------------------------
diff --git a/core-common/src/main/java/org/apache/kylin/common/util/SSHClient.java b/core-common/src/main/java/org/apache/kylin/common/util/SSHClient.java
index 8d98862..55a1f96 100644
--- a/core-common/src/main/java/org/apache/kylin/common/util/SSHClient.java
+++ b/core-common/src/main/java/org/apache/kylin/common/util/SSHClient.java
@@ -246,6 +246,8 @@ public class SSHClient {
out.flush();
}
+ in.close();
+ out.close();
session.disconnect();
} catch (Exception e) {
throw e;