hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From st...@apache.org
Subject hbase git commit: HBASE-12532 TestFilter failing occasionally with ExitCodeException doing chmod since HBASE-10378
Date Wed, 19 Nov 2014 05:54:57 GMT
Repository: hbase
Updated Branches:
  refs/heads/master 1e77dd9f7 -> d87c550b9


HBASE-12532 TestFilter failing occasionally with ExitCodeException doing chmod since HBASE-10378


Project: http://git-wip-us.apache.org/repos/asf/hbase/repo
Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/d87c550b
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/d87c550b
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/d87c550b

Branch: refs/heads/master
Commit: d87c550b948c11992660015ef26954a699929869
Parents: 1e77dd9
Author: stack <stack@apache.org>
Authored: Tue Nov 18 21:54:48 2014 -0800
Committer: stack <stack@apache.org>
Committed: Tue Nov 18 21:54:48 2014 -0800

----------------------------------------------------------------------
 .../java/org/apache/hadoop/hbase/regionserver/HRegion.java   | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hbase/blob/d87c550b/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HRegion.java
----------------------------------------------------------------------
diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HRegion.java
b/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HRegion.java
index 1615a25..e9b360d 100644
--- a/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HRegion.java
+++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HRegion.java
@@ -4563,9 +4563,13 @@ public class HRegion implements HeapSize, PropagatingConfigurationObserver
{ //
     WAL effectiveWAL = wal;
     if (wal == null && !ignoreWAL) {
       // TODO HBASE-11983 There'll be no roller for this wal?
-      effectiveWAL = (new WALFactory(conf,
+      // The WAL subsystem will use the default rootDir rather than the passed in rootDir
+      // unless I pass along via the conf.
+      Configuration confForWAL = new Configuration(conf);
+      confForWAL.set(HConstants.HBASE_DIR, rootDir.toString());
+      effectiveWAL = (new WALFactory(confForWAL,
           Collections.<WALActionsListener>singletonList(new MetricsWAL()),
-          "hregion-" + RandomStringUtils.random(8))).getWAL(info.getEncodedNameAsBytes());
+          "hregion-" + RandomStringUtils.randomAscii(8))).getWAL(info.getEncodedNameAsBytes());
     }
     HRegion region = HRegion.newHRegion(tableDir,
         effectiveWAL, fs, conf, info, hTableDescriptor, null);


Mime
View raw message