hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "xufeng (Updated) (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HBASE-4773) HBaseAdmin leaks ZooKeeper connections
Date Mon, 14 Nov 2011 08:32:51 GMT

     [ https://issues.apache.org/jira/browse/HBASE-4773?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

xufeng updated HBASE-4773:
--------------------------

    Attachment: 4773.patch

created the branches patch, here are test result:

Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 27.675 sec
Running org.apache.hadoop.hbase.TestScanMultipleVersions
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 24.155 sec
Running org.apache.hadoop.hbase.rest.model.TestStorageClusterVersionModel
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.026 sec
Running org.apache.hadoop.hbase.client.TestHCM
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 43.686 sec

Results :

Tests run: 694, Failures: 0, Errors: 0, Skipped: 9
                
> HBaseAdmin leaks ZooKeeper connections
> --------------------------------------
>
>                 Key: HBASE-4773
>                 URL: https://issues.apache.org/jira/browse/HBASE-4773
>             Project: HBase
>          Issue Type: Bug
>          Components: client
>    Affects Versions: 0.90.4
>            Reporter: gaojinchao
>            Priority: Critical
>             Fix For: 0.90.5
>
>         Attachments: 4773.patch
>
>
> When master crashs, HBaseAdmin will leaks ZooKeeper connections
> I think we should close the zk connetion when throw MasterNotRunningException
>  public HBaseAdmin(Configuration c)
>   throws MasterNotRunningException, ZooKeeperConnectionException {
>     this.conf = HBaseConfiguration.create(c);
>     this.connection = HConnectionManager.getConnection(this.conf);
>     this.pause = this.conf.getLong("hbase.client.pause", 1000);
>     this.numRetries = this.conf.getInt("hbase.client.retries.number", 10);
>     this.retryLongerMultiplier = this.conf.getInt("hbase.client.retries.longer.multiplier",
10);
>     //we should add this code and close the zk connection
>     try{
>       this.connection.getMaster();
>     }catch(MasterNotRunningException e){
>       HConnectionManager.deleteConnection(conf, false);
>       throw e;      
>     }
>   }

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

        

Mime
View raw message