HBASE-18166 [AMv2] We are splitting already-split files v2 Address Stephen Jiang reivew comments; ADDENDUM TO FIX COMPILE
This commit is contained in:
parent
f64512bee1
commit
c2eebfdb61
|
@ -536,13 +536,13 @@ public class SplitTableRegionProcedure
|
|||
final TableDescriptor htd = env.getMasterServices().getTableDescriptors().get(getTableName());
|
||||
for (Map.Entry<String, Collection<StoreFileInfo>>e: files.entrySet()) {
|
||||
byte [] familyName = Bytes.toBytes(e.getKey());
|
||||
final HColumnDescriptor hcd = htd.getFamily(familyName);
|
||||
final ColumnFamilyDescriptor hcd = htd.getColumnFamily(familyName);
|
||||
final Collection<StoreFileInfo> storeFiles = e.getValue();
|
||||
if (storeFiles != null && storeFiles.size() > 0) {
|
||||
final CacheConfig cacheConf = new CacheConfig(conf, hcd);
|
||||
for (StoreFileInfo storeFileInfo: storeFiles) {
|
||||
StoreFileSplitter sfs =
|
||||
new StoreFileSplitter(regionFs, family.getBytes(), new HStoreFile(mfs.getFileSystem(),
|
||||
new StoreFileSplitter(regionFs, familyName, new HStoreFile(mfs.getFileSystem(),
|
||||
storeFileInfo, conf, cacheConf, hcd.getBloomFilterType(), true));
|
||||
futures.add(threadPool.submit(sfs));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue