New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SAMZA-2094: Implement the StartpointVisitor for KafkaSystemConsumer. #901
Conversation
@cameronlee314 @dnishimura |
Please take a look at the comment #869 (comment) regarding not having KafkaSystemConsumer directly implement StartpointVisitor. |
@cameronlee314 Thanks for the review. Addressed the comment. |
@@ -330,6 +341,57 @@ public String getSystemName() { | |||
return systemName; | |||
} | |||
|
|||
@VisibleForTesting | |||
static class KafkaStartpointVisitor implements StartpointVisitor { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you please change the name to indicate it is responsible for startpoint registration? "StartpointVisitor" can be anything that needs to act on a Startpoint
, so just using KafkaStartpointVisitor
isn't specific enough.
samza-kafka/src/main/java/org/apache/samza/system/kafka/KafkaSystemConsumer.java
Show resolved
Hide resolved
samza-kafka/src/main/java/org/apache/samza/system/kafka/KafkaSystemConsumer.java
Outdated
Show resolved
Hide resolved
samza-kafka/src/main/java/org/apache/samza/system/kafka/KafkaSystemConsumer.java
Show resolved
Hide resolved
samza-kafka/src/test/java/org/apache/samza/system/kafka/TestKafkaSystemConsumer.java
Show resolved
Hide resolved
samza-kafka/src/test/java/org/apache/samza/system/kafka/TestKafkaSystemConsumer.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the review.
samza-kafka/src/main/java/org/apache/samza/system/kafka/KafkaSystemConsumer.java
Show resolved
Hide resolved
samza-kafka/src/main/java/org/apache/samza/system/kafka/KafkaSystemConsumer.java
Outdated
Show resolved
Hide resolved
samza-kafka/src/main/java/org/apache/samza/system/kafka/KafkaSystemConsumer.java
Show resolved
Hide resolved
samza-kafka/src/test/java/org/apache/samza/system/kafka/TestKafkaSystemConsumer.java
Show resolved
Hide resolved
samza-kafka/src/test/java/org/apache/samza/system/kafka/TestKafkaSystemConsumer.java
Outdated
Show resolved
Hide resolved
388db33
to
d702d47
Compare
No description provided.