-
Notifications
You must be signed in to change notification settings - Fork 44
Open
Description
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.
mirus/src/main/java/com/salesforce/mirus/MirusSourceTask.java
Lines 161 to 167 in 4b48244
| 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?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels