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);
|
getPuller(segment.getLoadSpec()).getSegmentFiles(segment, storageDir);
|
||||||
|
|
||||||
try {
|
if (!downloadStartMarker.delete()) {
|
||||||
FileUtils.deleteDirectory(downloadStartMarker);
|
|
||||||
}
|
|
||||||
catch (Exception e) {
|
|
||||||
throw new SegmentLoadingException("Unable to remove marker file for [%s]", storageDir);
|
throw new SegmentLoadingException("Unable to remove marker file for [%s]", storageDir);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
loc.addSegment(segment);
|
loc.addSegment(segment);
|
||||||
|
|
||||||
retVal = storageDir;
|
retVal = storageDir;
|
||||||
|
|
Loading…
Reference in New Issue