Revert "HBASE-23716 MasterFileSystem should not create MasterProcWALs dir on … (#1078)"
Wrong jira id This reverts commit aca7f6fcf30965028f54a90c4da01378f708d8ff.
This commit is contained in:
parent
b2d24a1812
commit
1ac00e11cb
@ -38,6 +38,7 @@ import org.apache.hadoop.hbase.exceptions.DeserializationException;
|
|||||||
import org.apache.hadoop.hbase.fs.HFileSystem;
|
import org.apache.hadoop.hbase.fs.HFileSystem;
|
||||||
import org.apache.hadoop.hbase.log.HBaseMarkers;
|
import org.apache.hadoop.hbase.log.HBaseMarkers;
|
||||||
import org.apache.hadoop.hbase.mob.MobConstants;
|
import org.apache.hadoop.hbase.mob.MobConstants;
|
||||||
|
import org.apache.hadoop.hbase.procedure2.store.wal.WALProcedureStore;
|
||||||
import org.apache.hadoop.hbase.regionserver.HRegion;
|
import org.apache.hadoop.hbase.regionserver.HRegion;
|
||||||
import org.apache.hadoop.hbase.security.access.SnapshotScannerHDFSAclHelper;
|
import org.apache.hadoop.hbase.security.access.SnapshotScannerHDFSAclHelper;
|
||||||
import org.apache.hadoop.hbase.util.Bytes;
|
import org.apache.hadoop.hbase.util.Bytes;
|
||||||
@ -143,12 +144,11 @@ public class MasterFileSystem {
|
|||||||
MobConstants.MOB_DIR_NAME
|
MobConstants.MOB_DIR_NAME
|
||||||
};
|
};
|
||||||
|
|
||||||
//With the introduction of RegionProcedureStore,
|
|
||||||
// there's no need to create MasterProcWAL dir here anymore. See HBASE-23715
|
|
||||||
final String[] protectedSubLogDirs = new String[] {
|
final String[] protectedSubLogDirs = new String[] {
|
||||||
HConstants.HREGION_LOGDIR_NAME,
|
HConstants.HREGION_LOGDIR_NAME,
|
||||||
HConstants.HREGION_OLDLOGDIR_NAME,
|
HConstants.HREGION_OLDLOGDIR_NAME,
|
||||||
HConstants.CORRUPT_DIR_NAME
|
HConstants.CORRUPT_DIR_NAME,
|
||||||
|
WALProcedureStore.MASTER_PROCEDURE_LOGDIR
|
||||||
};
|
};
|
||||||
// check if the root directory exists
|
// check if the root directory exists
|
||||||
checkRootDir(this.rootdir, conf, this.fs);
|
checkRootDir(this.rootdir, conf, this.fs);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user