hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j...@apache.org
Subject svn commit: r688830 - in /hadoop/hbase/trunk: CHANGES.txt src/java/org/apache/hadoop/hbase/client/HBaseAdmin.java
Date Mon, 25 Aug 2008 19:13:29 GMT
Author: jimk
Date: Mon Aug 25 12:13:29 2008
New Revision: 688830

URL: http://svn.apache.org/viewvc?rev=688830&view=rev
Log:
HBASE-843   Deleting and recreating a table in a single process does not work (Jonathan Gray
via Jim Kellerman)

Modified:
    hadoop/hbase/trunk/CHANGES.txt
    hadoop/hbase/trunk/src/java/org/apache/hadoop/hbase/client/HBaseAdmin.java

Modified: hadoop/hbase/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/hadoop/hbase/trunk/CHANGES.txt?rev=688830&r1=688829&r2=688830&view=diff
==============================================================================
--- hadoop/hbase/trunk/CHANGES.txt (original)
+++ hadoop/hbase/trunk/CHANGES.txt Mon Aug 25 12:13:29 2008
@@ -1,6 +1,6 @@
 HBase Change Log
 
-Release 0.3.0 - Unreleased
+Release 0.18.0 - Unreleased
   INCOMPATIBLE CHANGES
    HBASE-697   Thrift idl needs update/edit to match new 0.2 API (and to fix bugs)
                (Tim Sell via Stack)
@@ -32,6 +32,8 @@
    HBASE-810   Prevent temporary deadlocks when, during a scan with write
                operations, the region splits (Jean-Daniel Cryans via Jim
                Kellerman)
+   HBASE-843   Deleting and recreating a table in a single process does not work
+               (Jonathan Gray via Jim Kellerman)
 
   IMPROVEMENTS
    HBASE-801  When a table haven't disable, shell could response in a "user

Modified: hadoop/hbase/trunk/src/java/org/apache/hadoop/hbase/client/HBaseAdmin.java
URL: http://svn.apache.org/viewvc/hadoop/hbase/trunk/src/java/org/apache/hadoop/hbase/client/HBaseAdmin.java?rev=688830&r1=688829&r2=688830&view=diff
==============================================================================
--- hadoop/hbase/trunk/src/java/org/apache/hadoop/hbase/client/HBaseAdmin.java (original)
+++ hadoop/hbase/trunk/src/java/org/apache/hadoop/hbase/client/HBaseAdmin.java Mon Aug 25
12:13:29 2008
@@ -49,6 +49,7 @@
 public class HBaseAdmin {
   private final Log LOG = LogFactory.getLog(this.getClass().getName());
   private final HConnection connection;
+  private volatile HBaseConfiguration conf;
   private final long pause;
   private final int numRetries;
   private volatile HMasterInterface master;
@@ -61,6 +62,7 @@
    */
   public HBaseAdmin(HBaseConfiguration conf) throws MasterNotRunningException {
     this.connection = HConnectionManager.getConnection(conf);
+    this.conf = conf;
     this.pause = conf.getLong("hbase.client.pause", 30 * 1000);
     this.numRetries = conf.getInt("hbase.client.retries.number", 5);
     this.master = connection.getMaster();
@@ -285,6 +287,8 @@
         // continue
       }
     }
+    // Delete cached information to prevent clients from using old locations
+    HConnectionManager.deleteConnectionInfo(conf);
     LOG.info("Deleted " + Bytes.toString(tableName));
   }
 



Mime
View raw message