You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Richard Ding (JIRA)" <ji...@apache.org> on 2012/06/04 20:24:23 UTC

[jira] [Created] (HBASE-6159) truncate leaks ZK connection in HBase shell

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:

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

        

[jira] [Updated] (HBASE-6159) truncate leaks ZK connection in HBase shell

Posted by "stack (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HBASE-6159?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

stack updated HBASE-6159:
-------------------------

    Resolution: Won't Fix
        Status: Resolved  (was: Patch Available)

Resolving as wont' fix since seems to be for old version (is it 0.90.6 Richard?).  We can reopen and apply if Richard comments back.
                
> 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
>         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 is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (HBASE-6159) truncate leaks ZK connection in HBase shell

Posted by "stack (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HBASE-6159?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

stack updated HBASE-6159:
-------------------------

    Attachment: 6159.txt

Here is Richards comment as a patch.  +1 on commit.
                
> 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
>         Attachments: 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 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

        

[jira] [Commented] (HBASE-6159) truncate leaks ZK connection in HBase shell

Posted by "Jonathan Hsieh (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HBASE-6159?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13446304#comment-13446304 ] 

Jonathan Hsieh commented on HBASE-6159:
---------------------------------------

I tested watching the zk procesa and the shell processes with lsof and didn't see the number of files/connections go up.  This is against a 0.94.1rc0 version of hbase. Was this only against and older version (just 0.90.x?)
                
> 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
>         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 is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (HBASE-6159) truncate leaks ZK connection in HBase shell

Posted by "stack (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HBASE-6159?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

stack updated HBASE-6159:
-------------------------

    Status: Patch Available  (was: Open)
    
> 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
>         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 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

        

[jira] [Updated] (HBASE-6159) truncate leaks ZK connection in HBase shell

Posted by "stack (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HBASE-6159?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

stack updated HBASE-6159:
-------------------------

    Attachment: 6159.txt

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

        

[jira] [Commented] (HBASE-6159) truncate leaks ZK connection in HBase shell

Posted by "Hadoop QA (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HBASE-6159?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13288943#comment-13288943 ] 

Hadoop QA commented on HBASE-6159:
----------------------------------

-1 overall.  Here are the results of testing the latest attachment 
  http://issues.apache.org/jira/secure/attachment/12530834/6159.txt
  against trunk revision .

    +1 @author.  The patch does not contain any @author tags.

    -1 tests included.  The patch doesn't appear to include any new or modified tests.
                        Please justify why no new tests are needed for this patch.
                        Also please list what manual steps were performed to verify this patch.

    +1 hadoop2.0.  The patch compiles against the hadoop 2.0 profile.

    +1 javadoc.  The javadoc tool did not generate any warning messages.

    +1 javac.  The applied patch does not increase the total number of javac compiler warnings.

    -1 findbugs.  The patch appears to introduce 3 new Findbugs (version 1.3.9) warnings.

    +1 release audit.  The applied patch does not increase the total number of release audit warnings.

     -1 core tests.  The patch failed these unit tests:
     

Test results: https://builds.apache.org/job/PreCommit-HBASE-Build/2102//testReport/
Findbugs warnings: https://builds.apache.org/job/PreCommit-HBASE-Build/2102//artifact/trunk/patchprocess/newPatchFindbugsWarningshbase-common.html
Findbugs warnings: https://builds.apache.org/job/PreCommit-HBASE-Build/2102//artifact/trunk/patchprocess/newPatchFindbugsWarningshbase-server.html
Console output: https://builds.apache.org/job/PreCommit-HBASE-Build/2102//console

This message is automatically generated.
                
> 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
>         Attachments: 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 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

        

[jira] [Commented] (HBASE-6159) truncate leaks ZK connection in HBase shell

Posted by "Michael Drzal (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HBASE-6159?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13444035#comment-13444035 ] 

Michael Drzal commented on HBASE-6159:
--------------------------------------

+1 on this.  Anything else that needs to happen?
                
> 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
>         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 is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (HBASE-6159) truncate leaks ZK connection in HBase shell

Posted by "stack (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HBASE-6159?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

stack updated HBASE-6159:
-------------------------

    Status: Patch Available  (was: Open)
    
> 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
>         Attachments: 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 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

        

[jira] [Commented] (HBASE-6159) truncate leaks ZK connection in HBase shell

Posted by "Hadoop QA (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HBASE-6159?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13289035#comment-13289035 ] 

Hadoop QA commented on HBASE-6159:
----------------------------------

-1 overall.  Here are the results of testing the latest attachment 
  http://issues.apache.org/jira/secure/attachment/12530877/6159.txt
  against trunk revision .

    +1 @author.  The patch does not contain any @author tags.

    -1 tests included.  The patch doesn't appear to include any new or modified tests.
                        Please justify why no new tests are needed for this patch.
                        Also please list what manual steps were performed to verify this patch.

    +1 hadoop2.0.  The patch compiles against the hadoop 2.0 profile.

    +1 javadoc.  The javadoc tool did not generate any warning messages.

    +1 javac.  The applied patch does not increase the total number of javac compiler warnings.

    -1 findbugs.  The patch appears to introduce 3 new Findbugs (version 1.3.9) warnings.

    +1 release audit.  The applied patch does not increase the total number of release audit warnings.

     -1 core tests.  The patch failed these unit tests:
                       org.apache.hadoop.hbase.io.hfile.TestForceCacheImportantBlocks

Test results: https://builds.apache.org/job/PreCommit-HBASE-Build/2103//testReport/
Findbugs warnings: https://builds.apache.org/job/PreCommit-HBASE-Build/2103//artifact/trunk/patchprocess/newPatchFindbugsWarningshbase-server.html
Findbugs warnings: https://builds.apache.org/job/PreCommit-HBASE-Build/2103//artifact/trunk/patchprocess/newPatchFindbugsWarningshbase-common.html
Console output: https://builds.apache.org/job/PreCommit-HBASE-Build/2103//console

This message is automatically generated.
                
> 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
>         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 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

        

[jira] [Updated] (HBASE-6159) truncate leaks ZK connection in HBase shell

Posted by "stack (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HBASE-6159?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

stack updated HBASE-6159:
-------------------------

    Status: Open  (was: Patch Available)
    
> 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
>         Attachments: 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 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