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,9 +856,6 @@ public class KafkaIndexTask extends AbstractTask implements ChatHandler
} }
for (SegmentsAndMetadata handedOff : handedOffList) { for (SegmentsAndMetadata handedOff : handedOffList) {
if (handedOff == null) {
log.warn("Handoff failed for segments %s", handedOff.getSegments());
} else {
log.info( log.info(
"Handoff completed for segments[%s] with metadata[%s].", "Handoff completed for segments[%s] with metadata[%s].",
Joiner.on(", ").join( Joiner.on(", ").join(
@ -868,7 +865,6 @@ public class KafkaIndexTask extends AbstractTask implements ChatHandler
); );
} }
} }
}
catch (InterruptedException | RejectedExecutionException e) { catch (InterruptedException | RejectedExecutionException e) {
appenderator.closeNow(); appenderator.closeNow();
// handle the InterruptedException that gets wrapped in a RejectedExecutionException // handle the InterruptedException that gets wrapped in a RejectedExecutionException