mirror of https://github.com/apache/druid.git
HadoopDruidIndexerJob: Fix NPE
This commit is contained in:
parent
7d34710edf
commit
b420892dd9
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue