HBASE-18287 Remove log warning in PartitionedMobCompactor.java#getFileStatus
This commit is contained in:
parent
bd0b0afa61
commit
1a2c38b965
|
@ -915,23 +915,20 @@ public class PartitionedMobCompactor extends MobCompactor {
|
||||||
|
|
||||||
private FileStatus getLinkedFileStatus(HFileLink link) throws IOException {
|
private FileStatus getLinkedFileStatus(HFileLink link) throws IOException {
|
||||||
Path[] locations = link.getLocations();
|
Path[] locations = link.getLocations();
|
||||||
|
FileStatus file;
|
||||||
for (Path location : locations) {
|
for (Path location : locations) {
|
||||||
FileStatus file = getFileStatus(location);
|
|
||||||
if (file != null) {
|
|
||||||
return file;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
private FileStatus getFileStatus(Path path) throws IOException {
|
if (location != null) {
|
||||||
try {
|
try {
|
||||||
if (path != null) {
|
file = fs.getFileStatus(location);
|
||||||
return fs.getFileStatus(path);
|
if (file != null) {
|
||||||
|
return file;
|
||||||
|
}
|
||||||
|
} catch (FileNotFoundException e) {
|
||||||
|
}
|
||||||
}
|
}
|
||||||
} catch (FileNotFoundException e) {
|
|
||||||
LOG.warn("The file " + path + " can not be found", e);
|
|
||||||
}
|
}
|
||||||
|
LOG.warn("The file " + link + " links to can not be found");
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue