Skip to content

Commit 0a672dd

Browse files
Apache9apurtell
authored andcommitted
HBASE-26690 Modify FSTableDescriptors to not rely on renaming when writing TableDescriptor (apache#4054)
Signed-off-by: Wellington Ramos Chevreuil <[email protected]>
1 parent 7bd15d4 commit 0a672dd

File tree

3 files changed

+317
-373
lines changed

3 files changed

+317
-373
lines changed

hbase-mapreduce/src/main/java/org/apache/hadoop/hbase/regionserver/CompactionTool.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ private static boolean isRegionDir(final FileSystem fs, final Path path) throws
191191
}
192192

193193
private static boolean isTableDir(final FileSystem fs, final Path path) throws IOException {
194-
return FSTableDescriptors.getTableInfoPath(fs, path) != null;
194+
return FSTableDescriptors.isTableDir(fs, path);
195195
}
196196

197197
private static boolean isFamilyDir(final FileSystem fs, final Path path) throws IOException {

0 commit comments

Comments
 (0)