Skip to content

Conversation

@ableegoldman
Copy link
Member

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

Copy link
Contributor

@wcarlson5 wcarlson5 left a 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!

}

@Test
public void shouldEmitSameRecordAfterFailover() throws Exception {
Copy link
Contributor

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);
Copy link
Contributor

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?

Copy link
Member Author

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

Copy link
Contributor

@guozhangwang guozhangwang left a 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.

@ableegoldman
Copy link
Member Author

Test failures are unrelated, will merge

@ableegoldman ableegoldman merged commit 6eb57f6 into apache:trunk Mar 1, 2022
@ableegoldman
Copy link
Member Author

Merged to trunk

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants