mirror of https://github.com/apache/druid.git
Fix dead code in IndexTask.collectIntervalsAndShardSpecs() (#7746)
This commit is contained in:
parent
7eac685e47
commit
c97eb93e16
|
@ -731,8 +731,6 @@ public class IndexTask extends AbstractTask implements ChatHandler
|
||||||
final Map<Interval, Optional<HyperLogLogCollector>> hllCollectors = new TreeMap<>(
|
final Map<Interval, Optional<HyperLogLogCollector>> hllCollectors = new TreeMap<>(
|
||||||
Comparators.intervalsByStartThenEnd()
|
Comparators.intervalsByStartThenEnd()
|
||||||
);
|
);
|
||||||
int thrownAway = 0;
|
|
||||||
int unparseable = 0;
|
|
||||||
final Granularity queryGranularity = granularitySpec.getQueryGranularity();
|
final Granularity queryGranularity = granularitySpec.getQueryGranularity();
|
||||||
|
|
||||||
try (
|
try (
|
||||||
|
@ -807,12 +805,13 @@ public class IndexTask extends AbstractTask implements ChatHandler
|
||||||
}
|
}
|
||||||
|
|
||||||
// These metrics are reported in generateAndPublishSegments()
|
// These metrics are reported in generateAndPublishSegments()
|
||||||
if (thrownAway > 0) {
|
if (determinePartitionsMeters.getThrownAway() > 0) {
|
||||||
log.warn("Unable to find a matching interval for [%,d] events", thrownAway);
|
log.warn("Unable to find a matching interval for [%,d] events", determinePartitionsMeters.getThrownAway());
|
||||||
}
|
}
|
||||||
if (unparseable > 0) {
|
if (determinePartitionsMeters.getUnparseable() > 0) {
|
||||||
log.warn("Unable to parse [%,d] events", unparseable);
|
log.warn("Unable to parse [%,d] events", determinePartitionsMeters.getUnparseable());
|
||||||
}
|
}
|
||||||
|
|
||||||
return hllCollectors;
|
return hllCollectors;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue