Skip to content

Commit 1429eb4

Browse files
committed
HBASE-28345 Close HBase connection on exit from HBase Shell
1 parent 16de74c commit 1429eb4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

hbase-shell/src/main/ruby/shell.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,8 @@ class Shell
108108
# exit the interactive shell and save that this
109109
# happend via a call to exit
110110
def exit(ret = 0)
111+
# Non-deamon Netty threadpool in ZK ClientCnxnSocketNetty cannot be shut down otherwise
112+
self.hbase.shutdown
111113
@exit_code = ret
112114
IRB.irb_exit(IRB.CurrentContext.irb, ret)
113115
end

0 commit comments

Comments
 (0)