Skip to content

KAFKA-14522 Rewrite/Move of RemoteIndexCache to storage module.#13275

Merged
satishd merged 10 commits into
apache:trunkfrom
satishd:KAFKA-14522
Jul 11, 2023
Merged

KAFKA-14522 Rewrite/Move of RemoteIndexCache to storage module.#13275
satishd merged 10 commits into
apache:trunkfrom
satishd:KAFKA-14522

Conversation

@satishd

@satishd satishd commented Feb 18, 2023

Copy link
Copy Markdown
Member

KAFKA-14522 Rewrite/Move of RemoteIndexCache to the storage module.

Committer Checklist (excluded from commit message)

  • Verify design and implementation
  • Verify test coverage and CI build status
  • Verify documentation (including upgrade notes)

@showuon showuon left a comment

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.

Had an early review, left some comments. Thanks.

@satishd
satishd force-pushed the KAFKA-14522 branch 2 times, most recently from da17d44 to 90b914c Compare February 19, 2023 15:19
@satishd
satishd marked this pull request as ready for review February 25, 2023 12:14
@satishd
satishd requested review from junrao and showuon February 25, 2023 13:18
Comment thread storage/src/main/java/org/apache/kafka/storage/internals/log/LogFileUtils.java Outdated
@satishd
satishd force-pushed the KAFKA-14522 branch 2 times, most recently from 81ceeee to e49a357 Compare March 1, 2023 06:57
@satishd

satishd commented Mar 1, 2023

Copy link
Copy Markdown
Member Author

Thanks @showuon for your review. Addressed the comments with the latest commit.

@junrao junrao left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@satishd : Thanks for the PR. A few comments below.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

The constructor declares throwing IOException. Why do we need to convert IOException to KafkaException? Ditto in other methods like init()?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

This exception is not directly thrown to the constructor. It is inside an anonymous inner class of LinkedHashMap#removeEldestEntry. This method is not declared with IOException.

@satishd

satishd commented Mar 2, 2023

Copy link
Copy Markdown
Member Author

Thanks @junrao for your review. Addressed your comments inline and/or updated with the latest commit.

@satishd
satishd requested a review from junrao March 5, 2023 05:09

@junrao junrao left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@satishd : Thanks for the updated PR. A few more comments.

Comment thread storage/src/main/java/org/apache/kafka/storage/internals/log/LogFileUtils.java Outdated
@divijvaidya divijvaidya added the tiered-storage Related to the Tiered Storage feature label Jun 16, 2023
@satishd
satishd force-pushed the KAFKA-14522 branch 2 times, most recently from b290f00 to 22a9c72 Compare July 4, 2023 06:14
@satishd

satishd commented Jul 4, 2023

Copy link
Copy Markdown
Member Author

@junrao @showuon Addressed the review comments with the latest commits. It also includes the recent changes on RemoteIndexCache in trunk.

@satishd
satishd requested review from junrao and showuon July 4, 2023 06:39
@showuon

showuon commented Jul 5, 2023

Copy link
Copy Markdown
Member

Will take a look this week or next week. Thanks.

@showuon showuon left a comment

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.

@satishd , thanks for the update. Left some comments.

@junrao junrao left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@satishd : Thanks for the updated PR. Just a few minor comments.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This and the next two methods are only used for tests. Should we expose them at the package level?

@satishd satishd Jul 10, 2023

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Tests are written at different package level in core module. We can revisit this once the tests are also moved to java and the respective module/package.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

ShutdownableThread already logs the shutdown.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

This comment is very specific to the interrupted scenario.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Should we clean up the tmp file too?

Comment thread build.gradle Outdated
Cleanedup index file suffix usages and other minor cleaups
@satishd

satishd commented Jul 10, 2023

Copy link
Copy Markdown
Member Author

Thanks @junrao for the review comment. Addressed them with the latest commits and/or inline.

@satishd

satishd commented Jul 10, 2023

Copy link
Copy Markdown
Member Author

Thanks @divijvaidya for the review. Addressed them with inline and/or with the latest commits.

@showuon showuon left a comment

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.

LGTM!

@divijvaidya divijvaidya left a comment

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.

Left a last round of minor comments. I am good to ship this PR once they are resolved.

@satishd

satishd commented Jul 10, 2023

Copy link
Copy Markdown
Member Author

Thanks @divijvaidya for the latest review. Addressed them with the latest commit.

@jeqo jeqo left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Just a few comments related to TxnIndex potentially being optional.

@satishd

satishd commented Jul 11, 2023

Copy link
Copy Markdown
Member Author

Just a few comments related to TxnIndex potentially being optional.

@jeqo There is already KAFKA-14993 to address that. @kamalcph was working on that. I did not want to add those changes to this PR as it is tracked separately.

@jeqo jeqo left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Sure, thanks for the reminder. LGTM, thanks @satishd !

@kamalcph kamalcph left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@satishd
satishd requested a review from junrao July 11, 2023 08:55

@junrao junrao left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@satishd : Thanks for the updated PR. LGTM

@satishd

satishd commented Jul 11, 2023

Copy link
Copy Markdown
Member Author

A few tests are failed but those are not related to the changes in the PR.

@satishd
satishd merged commit 7e2f878 into apache:trunk Jul 11, 2023
Cerchie pushed a commit to Cerchie/kafka that referenced this pull request Jul 25, 2023
…he#13275)

KAFKA-14522 Rewrite and Move of RemoteIndexCache to storage module.
Cleanedup index file suffix usages and other minor cleanups

Reviewers: Jun Rao <junrao@gmail.com>, Ismael Juma <ismael@juma.me.uk>, Luke Chen <showuon@gmail.com>, Divij Vaidya <diviv@amazon.com>, Kamal Chandraprakash<kamal.chandraprakash@gmail.com>, Jorge Esteban Quilcate Otoya <quilcate.jorge@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

tiered-storage Related to the Tiered Storage feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants