By default Kafka Consumer has auto.offset.reset policy configured to latest. But it looks that the implementation in this connector is reverse -- unless it is configured it will start with earliest.
|
String offsetReset = (String) consumerProperties.get("auto.offset.reset"); |
|
if ("latest".equalsIgnoreCase(offsetReset)) { |
|
logger.trace("Seeking to end"); |
|
consumer.seekToEnd(Collections.singletonList(tp)); |
|
} else { |
|
logger.trace("Seeking to beginning"); |
|
consumer.seekToBeginning(Collections.singletonList(tp)); |
And that value is extracted from the consumer prefixed ones:
|
return simpleConfig.originalsWithPrefix("consumer."); |
Would it make sense to make the default the same as the normal connector to keep it consistent with normal consumer groups?
By default Kafka Consumer has
auto.offset.resetpolicy configured to latest. But it looks that the implementation in this connector is reverse -- unless it is configured it will start with earliest.mirus/src/main/java/com/salesforce/mirus/MirusSourceTask.java
Lines 161 to 167 in 4b48244
And that value is extracted from the consumer prefixed ones:
mirus/src/main/java/com/salesforce/mirus/config/SourceConfig.java
Line 51 in 4b48244
Would it make sense to make the default the same as the normal connector to keep it consistent with normal consumer groups?