mirror of https://github.com/apache/druid.git
ParallelIndexSupervisorTask: don't warn about a default value (#6987)
Native batch indexing doesn't yet support the maxParseExceptions, maxSavedParseExceptions, and logParseExceptions tuning config options, so ParallelIndexSupervisorTask logs if these are set. But the default value for maxParseExceptions is Integer.MAX_VALUE, which means that you'll get the maxParseExceptions flavor of this warning even if you don't configure maxParseExceptions. This PR changes all three warnings to occur if you change the settings from the default; this mostly affects the maxParseExceptions warning.
This commit is contained in:
parent
0e926e8652
commit
7e48593b57
|
@ -48,6 +48,7 @@ import org.apache.druid.indexing.common.task.batch.parallel.ParallelIndexTaskRun
|
|||
import org.apache.druid.java.util.common.IAE;
|
||||
import org.apache.druid.java.util.common.ISE;
|
||||
import org.apache.druid.java.util.common.logger.Logger;
|
||||
import org.apache.druid.segment.indexing.TuningConfig;
|
||||
import org.apache.druid.segment.indexing.granularity.GranularitySpec;
|
||||
import org.apache.druid.segment.realtime.appenderator.SegmentIdWithShardSpec;
|
||||
import org.apache.druid.segment.realtime.firehose.ChatHandler;
|
||||
|
@ -140,13 +141,14 @@ public class ParallelIndexSupervisorTask extends AbstractTask implements ChatHan
|
|||
this.authorizerMapper = authorizerMapper;
|
||||
this.rowIngestionMetersFactory = rowIngestionMetersFactory;
|
||||
|
||||
if (ingestionSchema.getTuningConfig().getMaxSavedParseExceptions() > 0) {
|
||||
if (ingestionSchema.getTuningConfig().getMaxSavedParseExceptions()
|
||||
!= TuningConfig.DEFAULT_MAX_SAVED_PARSE_EXCEPTIONS) {
|
||||
log.warn("maxSavedParseExceptions is not supported yet");
|
||||
}
|
||||
if (ingestionSchema.getTuningConfig().getMaxParseExceptions() > 0) {
|
||||
if (ingestionSchema.getTuningConfig().getMaxParseExceptions() != TuningConfig.DEFAULT_MAX_PARSE_EXCEPTIONS) {
|
||||
log.warn("maxParseExceptions is not supported yet");
|
||||
}
|
||||
if (ingestionSchema.getTuningConfig().isLogParseExceptions()) {
|
||||
if (ingestionSchema.getTuningConfig().isLogParseExceptions() != TuningConfig.DEFAULT_LOG_PARSE_EXCEPTIONS) {
|
||||
log.warn("logParseExceptions is not supported yet");
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue