From 018ae9e0d513721d079d120d976b940a3e2ac4d0 Mon Sep 17 00:00:00 2001 From: sershe Date: Thu, 30 May 2013 18:42:28 +0000 Subject: [PATCH] HBASE-8653 master seems to be deleting region tmp directory from under compaction git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1487961 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/hadoop/hbase/regionserver/HRegionFileSystem.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HRegionFileSystem.java b/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HRegionFileSystem.java index 6128c0a09c3..fa3fc5a7a36 100644 --- a/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HRegionFileSystem.java +++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HRegionFileSystem.java @@ -838,7 +838,7 @@ public class HRegionFileSystem { throw new IOException("The specified region do not exists on disk: " + regionDir); } - if (readOnly) { + if (!readOnly) { // Cleanup temporary directories regionFs.cleanupTempDir(); regionFs.cleanupSplitsDir();