HBASE-18287 Remove log warning in PartitionedMobCompactor.java#getFileStatus
This commit is contained in:
parent
6252ae22cf
commit
99e84a26f5
|
@ -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 (location != null) {
|
||||||
|
try {
|
||||||
|
file = fs.getFileStatus(location);
|
||||||
if (file != null) {
|
if (file != null) {
|
||||||
return file;
|
return file;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
private FileStatus getFileStatus(Path path) throws IOException {
|
|
||||||
try {
|
|
||||||
if (path != null) {
|
|
||||||
return fs.getFileStatus(path);
|
|
||||||
}
|
|
||||||
} 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