You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Andrew Kyle Purtell (Jira)" <ji...@apache.org> on 2022/06/13 16:46:00 UTC
[jira] [Closed] (HBASE-6159) truncate leaks ZK connection in HBase shell
[ https://issues.apache.org/jira/browse/HBASE-6159?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andrew Kyle Purtell closed HBASE-6159.
--------------------------------------
Assignee: (was: Richard Ding)
> truncate leaks ZK connection in HBase shell
> -------------------------------------------
>
> Key: HBASE-6159
> URL: https://issues.apache.org/jira/browse/HBASE-6159
> Project: HBase
> Issue Type: Bug
> Components: shell
> Affects Versions: 0.90.6
> Reporter: Richard Ding
> Priority: Minor
> Attachments: 6159.txt, 6159.txt
>
>
> ZK connection count always goes up by one when running shell command:
> {code}
> hbase(main):001:0> truncate 'table'
> {code}
> This can be fixed with the change in admin.rb:
> {code}
> - h_table = org.apache.hadoop.hbase.client.HTable.new(table_name)
> - table_description = h_table.getTableDescriptor()
> + table_description = @admin.getTableDescriptor(table_name.to_java_bytes)
> {code}
--
This message was sent by Atlassian Jira
(v8.20.7#820007)