-
Notifications
You must be signed in to change notification settings - Fork 15.4k
MINOR: Add select changes from 3rd KIP-307 PR for incrementing name index counter #6754
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
Changes from all commits
6b532f0
6d12a63
418fc4f
d45d2ec
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -424,7 +424,7 @@ public void shouldUseSpecifiedNameForStreamSourceProcessor() { | |
| builder.stream(STREAM_TOPIC_TWO); | ||
| builder.build(); | ||
| final ProcessorTopology topology = builder.internalTopologyBuilder.rewriteTopology(new StreamsConfig(props)).build(); | ||
| assertSpecifiedNameForOperation(topology, expected, "KSTREAM-SOURCE-0000000000"); | ||
| assertSpecifiedNameForOperation(topology, expected, "KSTREAM-SOURCE-0000000001"); | ||
| } | ||
|
|
||
| @Test | ||
|
|
@@ -440,8 +440,8 @@ public void shouldUseSpecifiedNameForTableSourceProcessor() { | |
| topology, | ||
| expected, | ||
| expected + "-table-source", | ||
| "KSTREAM-SOURCE-0000000002", | ||
| "KTABLE-SOURCE-0000000003"); | ||
| "KSTREAM-SOURCE-0000000004", | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. These number changes are valid as 2 store names (internal, not visible for IQ) are generated. I validated the topology description against a description generated by
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I see. So the diff we're seeing is against tests that were previously modified (incorrectly) to match the non-incrementing behavior that you're fixing right now?
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, that is correct.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. perfect. thanks for the reassurance!
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Actually, those test are newly added in a previous KIP-307 PR... But if Bill check agains 2.2, it should be fine. |
||
| "KTABLE-SOURCE-0000000005"); | ||
| } | ||
|
|
||
| @Test | ||
|
|
@@ -467,7 +467,7 @@ public void shouldUseSpecifiedNameForSinkProcessor() { | |
| stream.to(STREAM_TOPIC_TWO); | ||
| builder.build(); | ||
| final ProcessorTopology topology = builder.internalTopologyBuilder.rewriteTopology(new StreamsConfig(props)).build(); | ||
| assertSpecifiedNameForOperation(topology, "KSTREAM-SOURCE-0000000000", expected, "KSTREAM-SINK-0000000001"); | ||
| assertSpecifiedNameForOperation(topology, "KSTREAM-SOURCE-0000000000", expected, "KSTREAM-SINK-0000000002"); | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The first source is |
||
| } | ||
|
|
||
| private void assertSpecifiedNameForOperation(final ProcessorTopology topology, final String... expected) { | ||
|
|
||
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.
First source node would be
KSTREAM-SOURCE-0000000000so this is a valid change in the test