mirror of https://github.com/apache/druid.git
Changed downloadStartMarker in OmniSegmentLoader to simply use its .delete() method
This commit is contained in:
parent
8cc48fc730
commit
3cdcf8736f
|
@ -138,13 +138,11 @@ public class OmniSegmentLoader implements SegmentLoader
|
|||
|
||||
getPuller(segment.getLoadSpec()).getSegmentFiles(segment, storageDir);
|
||||
|
||||
try {
|
||||
FileUtils.deleteDirectory(downloadStartMarker);
|
||||
}
|
||||
catch (Exception e) {
|
||||
if (!downloadStartMarker.delete()) {
|
||||
throw new SegmentLoadingException("Unable to remove marker file for [%s]", storageDir);
|
||||
}
|
||||
|
||||
|
||||
loc.addSegment(segment);
|
||||
|
||||
retVal = storageDir;
|
||||
|
|
Loading…
Reference in New Issue