1
0

[MINOR] Fix default value for hoodie.deltastreamer.source.kafka.auto.reset.offsets (#2617)

This commit is contained in:
t0il3ts0ap
2021-03-03 07:19:18 +05:30
committed by GitHub
parent 0dde7f9185
commit 4fa43359cb

View File

@@ -177,7 +177,7 @@ public class KafkaOffsetGen {
}
DataSourceUtils.checkRequiredProperties(props, Collections.singletonList(Config.KAFKA_TOPIC_NAME));
topicName = props.getString(Config.KAFKA_TOPIC_NAME);
String kafkaAutoResetOffsetsStr = props.getString(Config.KAFKA_AUTO_RESET_OFFSETS, Config.DEFAULT_KAFKA_AUTO_RESET_OFFSETS.name());
String kafkaAutoResetOffsetsStr = props.getString(Config.KAFKA_AUTO_RESET_OFFSETS, Config.DEFAULT_KAFKA_AUTO_RESET_OFFSETS.name().toLowerCase());
boolean found = false;
for (KafkaResetOffsetStrategies entry: KafkaResetOffsetStrategies.values()) {
if (entry.name().toLowerCase().equals(kafkaAutoResetOffsetsStr)) {