-
Notifications
You must be signed in to change notification settings - Fork 15k
KAFKA-12738: address minor followup and consolidate integration tests of PR #11787 #11812
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
KAFKA-12738: address minor followup and consolidate integration tests of PR #11787 #11812
Conversation
wcarlson5
left a comment
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.
LGTM just a couple of nits!
streams/src/main/java/org/apache/kafka/streams/processor/internals/TaskExecutionMetadata.java
Outdated
Show resolved
Hide resolved
| } | ||
|
|
||
| @Test | ||
| public void shouldEmitSameRecordAfterFailover() throws Exception { |
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.
Nice move, this really does belong in this class
| streams.setUncaughtExceptionHandler(exception -> StreamThreadExceptionResponse.REPLACE_THREAD); | ||
|
|
||
| final NamedTopologyBuilder builder = streams.newNamedTopologyBuilder("topology_A"); | ||
| builder.stream(DELAYED_INPUT_STREAM_1).peek((k, v) -> outputExpected.incrementAndGet()).to(OUTPUT_STREAM_1); |
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.
would it be useful to have a second named topology as well to process data and make sure it makes progress?
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.
Ah yeah I meant to add a second integration test variant that's FromDifferentTopologies instead of WithinSameTopology -- but I'm still working on it, so I didn't want to block this PR on it necessarily. But short answer is "yes", definitely
guozhangwang
left a comment
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.
LGTM! This is a great move.
|
Test failures are unrelated, will merge |
|
Merged to trunk |
This PR addresses the remaining nits from the final review of #11787
It also deletes two integration test classes which had only one test in them, and moves the tests to another test class file to save on the time to bring up an entire embedded kafka cluster just for a single run