mirror of https://github.com/apache/druid.git
KafkaIndexTask remove branch with unreachable code (#5434)
This commit is contained in:
parent
b63f1c0e45
commit
f948066710
|
@ -856,17 +856,13 @@ public class KafkaIndexTask extends AbstractTask implements ChatHandler
|
||||||
}
|
}
|
||||||
|
|
||||||
for (SegmentsAndMetadata handedOff : handedOffList) {
|
for (SegmentsAndMetadata handedOff : handedOffList) {
|
||||||
if (handedOff == null) {
|
log.info(
|
||||||
log.warn("Handoff failed for segments %s", handedOff.getSegments());
|
"Handoff completed for segments[%s] with metadata[%s].",
|
||||||
} else {
|
Joiner.on(", ").join(
|
||||||
log.info(
|
handedOff.getSegments().stream().map(DataSegment::getIdentifier).collect(Collectors.toList())
|
||||||
"Handoff completed for segments[%s] with metadata[%s].",
|
),
|
||||||
Joiner.on(", ").join(
|
Preconditions.checkNotNull(handedOff.getCommitMetadata(), "commitMetadata")
|
||||||
handedOff.getSegments().stream().map(DataSegment::getIdentifier).collect(Collectors.toList())
|
);
|
||||||
),
|
|
||||||
Preconditions.checkNotNull(handedOff.getCommitMetadata(), "commitMetadata")
|
|
||||||
);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch (InterruptedException | RejectedExecutionException e) {
|
catch (InterruptedException | RejectedExecutionException e) {
|
||||||
|
|
Loading…
Reference in New Issue