KafkaIndexTask remove branch with unreachable code (#5434)

This commit is contained in:
Clint Wylie 2018-03-02 17:26:12 -08:00 committed by Gian Merlino
parent b63f1c0e45
commit f948066710
1 changed files with 7 additions and 11 deletions

View File

@ -856,17 +856,13 @@ public class KafkaIndexTask extends AbstractTask implements ChatHandler
}
for (SegmentsAndMetadata handedOff : handedOffList) {
if (handedOff == null) {
log.warn("Handoff failed for segments %s", handedOff.getSegments());
} else {
log.info(
"Handoff completed for segments[%s] with metadata[%s].",
Joiner.on(", ").join(
handedOff.getSegments().stream().map(DataSegment::getIdentifier).collect(Collectors.toList())
),
Preconditions.checkNotNull(handedOff.getCommitMetadata(), "commitMetadata")
);
}
log.info(
"Handoff completed for segments[%s] with metadata[%s].",
Joiner.on(", ").join(
handedOff.getSegments().stream().map(DataSegment::getIdentifier).collect(Collectors.toList())
),
Preconditions.checkNotNull(handedOff.getCommitMetadata(), "commitMetadata")
);
}
}
catch (InterruptedException | RejectedExecutionException e) {