hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jdcry...@apache.org
Subject svn commit: r1091855 - in /hbase/trunk: CHANGES.txt src/main/resources/hbase-webapps/master/master.jsp src/main/resources/hbase-webapps/master/table.jsp src/main/resources/hbase-webapps/master/zk.jsp
Date Wed, 13 Apr 2011 17:28:34 GMT
Author: jdcryans
Date: Wed Apr 13 17:28:34 2011
New Revision: 1091855

URL: http://svn.apache.org/viewvc?rev=1091855&view=rev
Log:
HBASE-3771  All jsp pages don't clean their HBA

Modified:
    hbase/trunk/CHANGES.txt
    hbase/trunk/src/main/resources/hbase-webapps/master/master.jsp
    hbase/trunk/src/main/resources/hbase-webapps/master/table.jsp
    hbase/trunk/src/main/resources/hbase-webapps/master/zk.jsp

Modified: hbase/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/hbase/trunk/CHANGES.txt?rev=1091855&r1=1091854&r2=1091855&view=diff
==============================================================================
--- hbase/trunk/CHANGES.txt (original)
+++ hbase/trunk/CHANGES.txt Wed Apr 13 17:28:34 2011
@@ -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

Modified: hbase/trunk/src/main/resources/hbase-webapps/master/master.jsp
URL: http://svn.apache.org/viewvc/hbase/trunk/src/main/resources/hbase-webapps/master/master.jsp?rev=1091855&r1=1091854&r2=1091855&view=diff
==============================================================================
--- hbase/trunk/src/main/resources/hbase-webapps/master/master.jsp (original)
+++ hbase/trunk/src/main/resources/hbase-webapps/master/master.jsp Wed Apr 13 17:28:34 2011
@@ -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>

Modified: hbase/trunk/src/main/resources/hbase-webapps/master/table.jsp
URL: http://svn.apache.org/viewvc/hbase/trunk/src/main/resources/hbase-webapps/master/table.jsp?rev=1091855&r1=1091854&r2=1091855&view=diff
==============================================================================
--- hbase/trunk/src/main/resources/hbase-webapps/master/table.jsp (original)
+++ hbase/trunk/src/main/resources/hbase-webapps/master/table.jsp Wed Apr 13 17:28:34 2011
@@ -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>

Modified: hbase/trunk/src/main/resources/hbase-webapps/master/zk.jsp
URL: http://svn.apache.org/viewvc/hbase/trunk/src/main/resources/hbase-webapps/master/zk.jsp?rev=1091855&r1=1091854&r2=1091855&view=diff
==============================================================================
--- hbase/trunk/src/main/resources/hbase-webapps/master/zk.jsp (original)
+++ hbase/trunk/src/main/resources/hbase-webapps/master/zk.jsp Wed Apr 13 17:28:34 2011
@@ -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>



Mime
View raw message