hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Richard Ding (JIRA)" <j...@apache.org>
Subject [jira] [Created] (HBASE-6159) truncate leaks ZK connection in HBase shell
Date Mon, 04 Jun 2012 18:24:23 GMT
Richard Ding created HBASE-6159:

             Summary: 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
            Assignee: Richard Ding
            Priority: Minor

ZK connection count always goes up by one when running shell command:

hbase(main):001:0> truncate 'table'

This can be fixed with the change in admin.rb:

- 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)

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira


View raw message