KAFKA-9487: Follow-up PR of Kafka-9445#8033
Conversation
guozhangwang
left a comment
There was a problem hiding this comment.
The non unit-testing part LGTM. @mjsax could you take a look at the unit tests and see if they have addressed all your comments?
| public static <T> StoreQueryParams<T> fromNameAndType(final String storeName, | ||
| final QueryableStoreType<T> queryableStoreType) { | ||
| return new StoreQueryParams<T>(storeName, queryableStoreType); | ||
| return new StoreQueryParams<T>(storeName, queryableStoreType, null, false); |
There was a problem hiding this comment.
Could we use a different sentinel than null for the partition field?. Does an Optional make sense?
There was a problem hiding this comment.
Actually we had a long discussion on keeping this null and adding it in Java doc that null means all partitions. Do you think this is important to start a discussion on the thread again? :)
There was a problem hiding this comment.
dont worry about it :) .. Happy to budge on stylistic things and leave it to the committers' call
| return results; | ||
| } | ||
|
|
||
| public List<String> sourceTopicsForStore(final String storeName) { |
There was a problem hiding this comment.
a side note: Should we also consider the map stateStoreNameToSourceRegex here?
There was a problem hiding this comment.
I am not sure, do you think it will identify more topic groups? At the end of the day we are identifying a topic groupId to which a store belongs to.
On a side note, if we do want to add stateStoreNameToSourceRegex along with stateStoreNameToSourceTopics, then we can probably return a set instead of list in this function and iterate over both of above one by one.
Thanks @guozhangwang and @vinothchandar . Addressed a few comments and have replied to some left. |
Thanks @vvcephei for the comments. I have made the changes suggested by you as well. @mjsax I guess everyone else has reviewed and their comments have been incorporated. It would be great if you can give one last look and if it's okay merge it. |
mjsax
left a comment
There was a problem hiding this comment.
Thanks for the PR. Couple of minor comments. Also added one more reply on the original PR that should be addressed in this PR (https://github.com/apache/kafka/pull/7984/files#r375517935).
vvcephei
left a comment
There was a problem hiding this comment.
Thanks for addressing my comments!
|
@vinothchandar @vvcephei I would still propose to rename the new class to Thoughts? |
|
|
|
@mjsax I have changed the class to StoreQueryParameters and addressed the comment you gave in earlier PR. There were few checkstyles which were failing in ValueAndTimestampSerializerTest unrelated to this PR. I have fixed those as well. |
|
Thanks @mjsax . I'll take care of it tomorrow. I don't see any test results, so I'll ask Jenkins to re-run it: Retest this, please. |
|
Unrelated test failures: Proceeding to merge. |
Follows up on the original PR for KAFKA-9445 to address a final round of feedback Cherry-pick of d76fa1b from trunk Reviewers: John Roesler <vvcephei@apache.org>, Matthias J. Sax <matthias@confluent.io>
|
Cherry-picked onto 2.5 as 3e77458 |
Follows up on the original PR for KAFKA-9445 to address a final round of feedback Cherry-pick of d76fa1b from trunk Reviewers: John Roesler <vvcephei@apache.org>, Matthias J. Sax <matthias@confluent.io>
More detailed description of your change,
if necessary. The PR title and PR message become
the squashed commit message, so use a separate
comment to ping reviewers.
Summary of testing strategy (including rationale)
for the feature or bug fix. Unit and/or integration
tests are expected for any behaviour change and
system tests should be considered for larger changes.
Committer Checklist (excluded from commit message)