Repository: kylin
Updated Branches:
  refs/heads/1.5.x-HBase1.x 20f55fb1b -> f6b77b40b (forced update)


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/1.5.x-HBase1.x
Commit: 8f584dd414e7168680d1990bc4fa1c9a34cd4712
Parents: 1357847
Author: Li Yang <liy...@apache.org>
Authored: Fri Apr 29 18:13:11 2016 +0800
Committer: Li Yang <liy...@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;

Reply via email to