hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j...@apache.org
Subject svn commit: r688831 - in /hadoop/hbase/branches/0.2: CHANGES.txt src/java/org/apache/hadoop/hbase/client/HBaseAdmin.java
Date Mon, 25 Aug 2008 19:18:40 GMT
Author: jimk
Date: Mon Aug 25 12:18:39 2008
New Revision: 688831

URL: http://svn.apache.org/viewvc?rev=688831&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/branches/0.2/CHANGES.txt
    hadoop/hbase/branches/0.2/src/java/org/apache/hadoop/hbase/client/HBaseAdmin.java

Modified: hadoop/hbase/branches/0.2/CHANGES.txt
URL: http://svn.apache.org/viewvc/hadoop/hbase/branches/0.2/CHANGES.txt?rev=688831&r1=688830&r2=688831&view=diff
==============================================================================
--- hadoop/hbase/branches/0.2/CHANGES.txt (original)
+++ hadoop/hbase/branches/0.2/CHANGES.txt Mon Aug 25 12:18:39 2008
@@ -33,6 +33,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/branches/0.2/src/java/org/apache/hadoop/hbase/client/HBaseAdmin.java
URL: http://svn.apache.org/viewvc/hadoop/hbase/branches/0.2/src/java/org/apache/hadoop/hbase/client/HBaseAdmin.java?rev=688831&r1=688830&r2=688831&view=diff
==============================================================================
--- hadoop/hbase/branches/0.2/src/java/org/apache/hadoop/hbase/client/HBaseAdmin.java (original)
+++ hadoop/hbase/branches/0.2/src/java/org/apache/hadoop/hbase/client/HBaseAdmin.java Mon
Aug 25 12:18:39 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