Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-6159

truncate leaks ZK connection in HBase shell

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Won't Fix
    • 0.90.6
    • None
    • shell
    • None

    Description

      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)
      

      Attachments

        1. 6159.txt
          0.8 kB
          Michael Stack
        2. 6159.txt
          0.8 kB
          Michael Stack

        Activity

          People

            Unassigned Unassigned
            rding Richard Ding
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: