mirror of https://github.com/apache/druid.git
fix NPE if queueBufferLength is null in KafkaEightSimpleConsumerFirehoseFactory (#3345)
This commit is contained in:
parent
890e3bdd3f
commit
b21a98e2f6
|
@ -106,7 +106,7 @@ public class KafkaEightSimpleConsumerFirehoseFactory implements
|
||||||
);
|
);
|
||||||
|
|
||||||
this.queueBufferLength = queueBufferLength == null ? DEFAULT_QUEUE_BUFFER_LENGTH : queueBufferLength;
|
this.queueBufferLength = queueBufferLength == null ? DEFAULT_QUEUE_BUFFER_LENGTH : queueBufferLength;
|
||||||
Preconditions.checkArgument(queueBufferLength > 0, "queueBufferLength must be positive number");
|
Preconditions.checkArgument(this.queueBufferLength > 0, "queueBufferLength must be positive number");
|
||||||
log.info("queueBufferLength loaded as[%s]", this.queueBufferLength);
|
log.info("queueBufferLength loaded as[%s]", this.queueBufferLength);
|
||||||
|
|
||||||
this.earliest = resetOffsetToEarliest == null ? true : resetOffsetToEarliest.booleanValue();
|
this.earliest = resetOffsetToEarliest == null ? true : resetOffsetToEarliest.booleanValue();
|
||||||
|
|
Loading…
Reference in New Issue