petersomogyi commented on code in PR #154:
URL: 
https://github.com/apache/hbase-operator-tools/pull/154#discussion_r2434938543


##########
hbase-hbck2/src/main/java/org/apache/hbase/hbck1/HBaseFsck.java:
##########
@@ -1876,7 +1886,30 @@ private HRegion createNewMeta() throws IOException {
     Path rootdir = CommonFSUtils.getRootDir(getConf());
     RegionInfo ri = RegionInfoBuilder.FIRST_META_REGIONINFO;
     TableDescriptor td = new 
FSTableDescriptors(getConf()).get(TableName.META_TABLE_NAME);
-    return HBaseTestingUtility.createRegionAndWAL(ri, rootdir, getConf(), td);
+    ChunkCreator.initialize(MemStoreLAB.CHUNK_SIZE_DEFAULT, false, 0, 0, 0, 
null,
+      MemStoreLAB.INDEX_CHUNK_SIZE_PERCENTAGE_DEFAULT);
+    WAL wal = createWal(getConf(), rootdir, ri);
+    return HRegion.createHRegion(ri, rootdir, getConf(), td, wal, true);
+  }
+
+  private static WAL createWal(final Configuration conf, final Path rootDir, 
final RegionInfo hri)

Review Comment:
   Can you add a note that this method is copied from HBaseTestingUtiliity?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to