HadoopDruidIndexerJob: getPublishedSegments before deleting them

This commit is contained in:
Gian Merlino 2013-05-15 01:23:18 -07:00
parent 86415e70ea
commit 040467c969
1 changed files with 4 additions and 2 deletions

View File

@ -102,6 +102,10 @@ public class HadoopDruidIndexerJob implements Jobby
}
}
if (failedMessage != null) {
publishedSegments = IndexGeneratorJob.getPublishedSegments(config);
}
if (!config.isLeaveIntermediate()) {
if (failedMessage == null || config.isCleanupOnFailure()) {
Path workingPath = config.makeIntermediatePath();
@ -119,8 +123,6 @@ public class HadoopDruidIndexerJob implements Jobby
throw new ISE(failedMessage);
}
publishedSegments = IndexGeneratorJob.getPublishedSegments(config);
return true;
}