You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "bjomobo (via GitHub)" <gi...@apache.org> on 2026/06/01 16:24:45 UTC
Re: [PR] HBASE-30049 RestoreSnapshotHelper creates StoreFileTracker with wrong… [hbase]
bjomobo commented on code in PR #8013:
URL: https://github.com/apache/hbase/pull/8013#discussion_r3335631871
##########
hbase-server/src/main/java/org/apache/hadoop/hbase/snapshot/RestoreSnapshotHelper.java:
##########
@@ -504,17 +504,19 @@ private void restoreRegion(final RegionInfo regionInfo,
// Restore families present in the table
for (Path familyDir : FSUtils.getFamilyDirs(fs, regionDir)) {
byte[] family = Bytes.toBytes(familyDir.getName());
- ColumnFamilyDescriptor familyDescriptor = ColumnFamilyDescriptorBuilder.of(family);
- StoreFileTracker tracker = StoreFileTrackerFactory.create(conf, true,
- StoreContext.getBuilder().withColumnFamilyDescriptor(familyDescriptor)
- .withFamilyStoreDirectoryPath(familyDir).withRegionFileSystem(regionFS).build());
- List<StoreFileInfo> storeFileInfos = tracker.load();
- List<String> familyFiles = storeFileInfos.stream()
- .map(storeFileInfo -> storeFileInfo.getPath().getName()).collect(Collectors.toList());
+
+ Set<String> familyFiles = getTableRegionFamilyFiles(familyDir);
List<SnapshotRegionManifest.StoreFile> snapshotFamilyFiles =
snapshotFiles.remove(familyDir.getName());
- List<StoreFileInfo> filesToTrack = new ArrayList<>();
if (snapshotFamilyFiles != null) {
+ // Family exists in the snapshot, create tracker with merged table descriptor config
+ // so that table-level settings are picked up.
Review Comment:
done
--
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: issues-unsubscribe@hbase.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org