hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From st...@apache.org
Subject svn commit: r1198582 - in /hbase/branches/0.92: CHANGES.txt src/main/java/org/apache/hadoop/hbase/util/FSTableDescriptors.java
Date Sun, 06 Nov 2011 22:48:32 GMT
Author: stack
Date: Sun Nov  6 22:48:31 2011
New Revision: 1198582

URL: http://svn.apache.org/viewvc?rev=1198582&view=rev
Log:
HBASE-4753 org.apache.hadoop.hbase.regionserver.TestHRegionInfo#testGetSetOfHTD throws NPE
on trunk

Modified:
    hbase/branches/0.92/CHANGES.txt
    hbase/branches/0.92/src/main/java/org/apache/hadoop/hbase/util/FSTableDescriptors.java

Modified: hbase/branches/0.92/CHANGES.txt
URL: http://svn.apache.org/viewvc/hbase/branches/0.92/CHANGES.txt?rev=1198582&r1=1198581&r2=1198582&view=diff
==============================================================================
--- hbase/branches/0.92/CHANGES.txt (original)
+++ hbase/branches/0.92/CHANGES.txt Sun Nov  6 22:48:31 2011
@@ -406,6 +406,8 @@ Release 0.92.0 - Unreleased
    HBASE-4553  The update of .tableinfo is not atomic; we remove then rename
    HBASE-4725  NPE in AM#updateTimers
    HBASE-4745  LRU statistics thread should be daemon
+   HBASE-4753  org.apache.hadoop.hbase.regionserver.TestHRegionInfo#testGetSetOfHTD
+               throws NPE on trunk (nkeywal)
 
   TESTS
    HBASE-4492  TestRollingRestart fails intermittently

Modified: hbase/branches/0.92/src/main/java/org/apache/hadoop/hbase/util/FSTableDescriptors.java
URL: http://svn.apache.org/viewvc/hbase/branches/0.92/src/main/java/org/apache/hadoop/hbase/util/FSTableDescriptors.java?rev=1198582&r1=1198581&r2=1198582&view=diff
==============================================================================
--- hbase/branches/0.92/src/main/java/org/apache/hadoop/hbase/util/FSTableDescriptors.java
(original)
+++ hbase/branches/0.92/src/main/java/org/apache/hadoop/hbase/util/FSTableDescriptors.java
Sun Nov  6 22:48:31 2011
@@ -430,7 +430,9 @@ public class FSTableDescriptors implemen
     FileSystem fs = FSUtils.getCurrentFileSystem(conf);
     FileStatus status = getTableInfoPath(fs, FSUtils.getRootDir(conf), tableName);
     // The below deleteDirectory works for either file or directory.
-    if (fs.exists(status.getPath())) FSUtils.deleteDirectory(fs, status.getPath());
+    if (status != null && fs.exists(status.getPath()))  {
+      FSUtils.deleteDirectory(fs, status.getPath());
+    }
   }
 
   /**



Mime
View raw message