-
Notifications
You must be signed in to change notification settings - Fork 13.6k
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-14475: Move TimeIndex/LazyIndex to storage module #13010
KAFKA-14475: Move TimeIndex/LazyIndex to storage module #13010
Conversation
04bca37
to
3beae7d
Compare
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 @ijuma for the PR. Do you plan to move LazyIndex
to storage module as part of this change?
Yes, I'll push that commit soon. Feel free to help review the transactions index one (first unmerged in the series) if you have cycles. :) |
69d4d24
to
720cc07
Compare
@satishd I pushed the |
bb15456
to
e094575
Compare
@satishd This should be ready for review now. |
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 @ijuma for the PR and adding LazyIndex related changes also. LGTM.
Test failures look unrelated. Re-running the tests just in case. |
e094575
to
9294e30
Compare
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.
@ijuma : Thanks for the PR. LGTM. Just a minor comment.
|
||
private volatile TimestampOffset lastEntry; | ||
|
||
public TimeIndex(File file, long baseOffset) throws IOException { |
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.
This constructor seems unused?
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.
Good catch, I think I changed some callers not to rely on this anymore, so we can remove it. Pushed the fix.
JDK 8 and JDK 17 builds passed, JDK 11 failures are unrelated:
|
For broader context on this change, please check: * KAFKA-14470: Move log layer to storage module Reviewers: Jun Rao <junrao@gmail.com>, Satish Duggana <satishd@apache.org>
For broader context on this change, please check:
Committer Checklist (excluded from commit message)