Skip to content

Commit 1bdca96

Browse files
author
Prathyusha Garre
committed
Remove null check on family
1 parent 796253b commit 1bdca96

1 file changed

Lines changed: 0 additions & 5 deletions

File tree

hbase-server/src/main/java/org/apache/hadoop/hbase/snapshot/RestoreSnapshotHelper.java

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -505,11 +505,6 @@ private void restoreRegion(final RegionInfo regionInfo,
505505
// Restore families present in the table
506506
for (Path familyDir : FSUtils.getFamilyDirs(fs, regionDir)) {
507507
byte[] family = Bytes.toBytes(familyDir.getName());
508-
if (family == null) {
509-
LOG.warn("Skipping restore for family {} as it doesn't exist in table descriptor",
510-
Bytes.toString(family));
511-
continue;
512-
}
513508
ColumnFamilyDescriptor familyDescriptor = ColumnFamilyDescriptorBuilder.of(family);
514509
StoreFileTracker tracker = StoreFileTrackerFactory.create(conf, true,
515510
StoreContext.getBuilder().withColumnFamilyDescriptor(familyDescriptor)

0 commit comments

Comments
 (0)