-
Notifications
You must be signed in to change notification settings - Fork 13.9k
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-6474: Rewrite tests to use new public TopologyTestDriver [part 3] #5052
Conversation
* Refactor: - KStreamWindowReduceTest - KTableMapKeysTest - SessionWindowedKStreamImplTest - TimeWindowedKStreamImplTest
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. Thanks for the PR!
Waiting for second review and Jenkins to pass before merging.
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.
Left a couple comments on checking @SuppressWarnings("unchecked")
. Otherwise LGTM!
processData(); | ||
final SessionStore<String, String> sessionStore = (SessionStore<String, String>) driver.allStateStores().get("reduced"); | ||
final List<KeyValue<Windowed<String>, String>> data = StreamsTestUtils.toList(sessionStore.fetch("1", "2")); | ||
try (final TopologyTestDriver driver = new TopologyTestDriver(builder.build(), props, 0L)) { |
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.
I think some of the above @SuppressWarnings("unchecked")
can be removed now as well; could you double check?
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.
Yes, they can. Thank for catching this.
processData(); | ||
final WindowStore<String, String> windowStore = (WindowStore<String, String>) driver.allStateStores().get("reduced"); | ||
final List<KeyValue<Windowed<String>, String>> data = StreamsTestUtils.toList(windowStore.fetch("1", "2", 0, 1000)); | ||
try (final TopologyTestDriver driver = new TopologyTestDriver(builder.build(), props, 0L)) { |
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.
Ditto here for @SuppressWarnings("unchecked")
above?
retest this please |
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 PR! LGTM.
I keep getting an (unrelated) timeout error on |
@h314to This is a known issue and is being fixed. |
Merged to trunk, thanks @h314to ! |
Great! :) |
…3] (apache#5052) * KAFKA-6474: Rewrite tests to use new public TopologyTestDriver [part 3] * Refactor: - KStreamWindowReduceTest - KTableMapKeysTest - SessionWindowedKStreamImplTest - TimeWindowedKStreamImplTest * Remove unnecessary @SuppressWarnings(unchecked) Reviewers: Bill Bejeck <bill@confluent.io>, Matthias J. Sax <matthias@confluent.io>, Guozhang Wang <wangguoz@gmail.com>
This PR is a further step towards the complete replacement of
KStreamTestDriver
withTopologyTestDriver
. These straightforward changes were split from another PR to simplify the review process.