HBASE-3771 All jsp pages don't clean their HBA

git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1091855 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Jean-Daniel Cryans 2011-04-13 17:28:34 +00:00
parent 74b9c22b23
commit e228a142a8
4 changed files with 11 additions and 1 deletions

View File

@ -203,6 +203,7 @@ Release 0.90.3 - Unreleased
HBASE-3755 Catch zk's ConnectionLossException and augment error
message with more help
HBASE-3722 A lot of data is lost when name node crashed (gaojinchao)
HBASE-3771 All jsp pages don't clean their HBA
IMPROVEMENTS
HBASE-3747 ReplicationSource should differanciate remote and local exceptions

View File

@ -8,6 +8,7 @@
import="org.apache.hadoop.hbase.master.HMaster"
import="org.apache.hadoop.hbase.HConstants"
import="org.apache.hadoop.hbase.client.HBaseAdmin"
import="org.apache.hadoop.hbase.client.HConnectionManager"
import="org.apache.hadoop.hbase.HServerInfo"
import="org.apache.hadoop.hbase.HServerAddress"
import="org.apache.hadoop.hbase.HTableDescriptor" %><%
@ -108,7 +109,10 @@
<%} %>
<h2>User Tables</h2>
<% HTableDescriptor[] tables = new HBaseAdmin(conf).listTables();
<%
HBaseAdmin hba = new HBaseAdmin(conf);
HTableDescriptor[] tables = hba.listTables();
HConnectionManager.deleteConnection(hba.getConfiguration(), false);
if(tables != null && tables.length > 0) { %>
<table>
<tr>

View File

@ -4,6 +4,7 @@
import="org.apache.hadoop.conf.Configuration"
import="org.apache.hadoop.hbase.client.HTable"
import="org.apache.hadoop.hbase.client.HBaseAdmin"
import="org.apache.hadoop.hbase.client.HConnectionManager"
import="org.apache.hadoop.hbase.HRegionInfo"
import="org.apache.hadoop.hbase.HServerAddress"
import="org.apache.hadoop.hbase.HServerInfo"
@ -202,6 +203,8 @@
ex.printStackTrace(System.err);
}
} // end else
HConnectionManager.deleteConnection(hbadmin.getConfiguration(), false);
%>
<p><hr><p>

View File

@ -3,6 +3,7 @@
import="org.apache.hadoop.conf.Configuration"
import="org.apache.hadoop.hbase.client.HBaseAdmin"
import="org.apache.hadoop.hbase.client.HConnection"
import="org.apache.hadoop.hbase.client.HConnectionManager"
import="org.apache.hadoop.hbase.HRegionInfo"
import="org.apache.hadoop.hbase.zookeeper.ZKUtil"
import="org.apache.hadoop.hbase.zookeeper.ZooKeeperWatcher"
@ -31,6 +32,7 @@
<hr id="head_rule" />
<pre>
<%= ZKUtil.dump(watcher) %>
<% HConnectionManager.deleteConnection(hbadmin.getConfiguration(), false); %>
</pre>
</body>