Skip to content

KAFKA-4863: [Follow Up] Querying window store may return unwanted keys#2713

Closed
dguy wants to merge 3 commits intoapache:trunkfrom
dguy:window-iter
Closed

KAFKA-4863: [Follow Up] Querying window store may return unwanted keys#2713
dguy wants to merge 3 commits intoapache:trunkfrom
dguy:window-iter

Conversation

@dguy
Copy link
Copy Markdown
Contributor

@dguy dguy commented Mar 20, 2017

iterate over all keys returned from the rocksdb iterator so we don't miss any results

@dguy
Copy link
Copy Markdown
Contributor Author

dguy commented Mar 20, 2017

@guozhangwang @xvrl - follow up to #2662

@asfbot
Copy link
Copy Markdown

asfbot commented Mar 20, 2017

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/kafka-pr-jdk8-scala2.11/2280/
Test FAILed (JDK 8 and Scala 2.11).

@asfbot
Copy link
Copy Markdown

asfbot commented Mar 20, 2017

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/kafka-pr-jdk7-scala2.10/2277/
Test PASSed (JDK 7 and Scala 2.10).

@asfbot
Copy link
Copy Markdown

asfbot commented Mar 20, 2017

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/kafka-pr-jdk8-scala2.12/2277/
Test PASSed (JDK 8 and Scala 2.12).

final long start = SessionKeySerde.extractStart(bytes.get());
final long end = SessionKeySerde.extractEnd(bytes.get());
return end >= from && start <= to;
if (keyBytes.equals(binaryKey)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

minor performance nit, it might be worthwhile to have something like SessionKeySerde.inWindow(bytes, binaryKey, from, to) to avoid creating three bytebuffer objects for each comparison.

@asfbot
Copy link
Copy Markdown

asfbot commented Mar 21, 2017

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/kafka-pr-jdk8-scala2.12/2293/
Test PASSed (JDK 8 and Scala 2.12).

@asfbot
Copy link
Copy Markdown

asfbot commented Mar 21, 2017

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/kafka-pr-jdk8-scala2.11/2296/
Test PASSed (JDK 8 and Scala 2.11).

@asfbot
Copy link
Copy Markdown

asfbot commented Mar 21, 2017

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/kafka-pr-jdk7-scala2.10/2293/
Test PASSed (JDK 7 and Scala 2.10).

@asfgit asfgit closed this in c74eec9 Mar 21, 2017
@guozhangwang
Copy link
Copy Markdown
Contributor

LGTM: merged to trunk.

@dguy dguy deleted the window-iter branch March 30, 2017 11:10
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.

4 participants