-
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-4064 Add support for infinite endpoints for range queries in Kafka Streams KV stores #1761
Conversation
@theduderog you have a checkstyle failure |
After seeing the API changes, i'm wondering if it would be better if we have a single function
It at least means we can support everything with a single method on the |
I don't have a strong opinion. I see the benefits of a single So: store.rangeFrom(3) versus store.range(Range.from(3)) Perhaps a question to ask is: Would we need a separate |
cc @ijuma as well |
I prefer the method taking a Range personally (it is why I suggested that offline when the discussion was taking place). It is easy to add convenience methods later, if necessary, but hard to remove methods from the interface. |
There are some jenkins failures that seems related to the changes. |
@guozhangwang I'll fix those. What you think about the API? |
@theduderog - sorry we haven't progressed this at all. Besides the conflicts. I'm in favor of the API as I mentioned above (Obviously!) @enothereska @mjsax @guozhangwang - thoughts? |
Yeah good idea. Let's push to get this in asap. @theduderog could you resolve the conflict and then we can take it from there. Sorry for the delay. |
ping @theduderog |
9a59246
to
48209d5
Compare
retest this please |
Is The docs say inclusive, the RocksDB implementation is inclusive, but the InMemory implementation is exclusive. Not to mentioned that Java SortedSet.subSet defaults to exclusive and seems like the more natural choice so it's likely what users expect. |
Re: Re: API, I think I also agree with @dguy and @ijuma on the new
which could be generalized later. At the same time we can keep the current function and reimplemented as |
Made a pass over the implementation, LGTM overall. |
retest this please |
@theduderog |
thanks, @guozhangwang. it may have just been a coincidence but it seemed to kick off right after i added that comment |
@theduderog Could you file a KIP for this API change as well? |
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 thought we were going to have a single range
method that takes a Range
class?
@dguy I'll switch to that for the KIP |
Closing this PR due to inactivity. |
FYI, this was implemented in #11120 |
@guozhangwang
I had to fix the bug with in-memory ranges being exclusive and RocksDB being inclusive to get meaningful tests to work.