Skip to content
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-15410: Delete records with tiered storage integration test (4/4) #14330

Merged
merged 8 commits into from Sep 7, 2023

Conversation

kamalcph
Copy link
Collaborator

@kamalcph kamalcph commented Sep 3, 2023

Added the integration test for DELETE_RECORDS API for tiered storage enabled topic.

Committer Checklist (excluded from commit message)

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

@kamalcph kamalcph changed the title KAFKA-15410: Delete segments due to log-start-offset breach integration test (4/4) KAFKA-15410: Delete records API with tiered storage integration test (4/4) Sep 3, 2023
@kamalcph kamalcph changed the title KAFKA-15410: Delete records API with tiered storage integration test (4/4) KAFKA-15410: Delete records with tiered storage integration test (4/4) Sep 3, 2023
@satishd satishd added the tiered-storage Pull requests associated with KIP-405 (Tiered Storage) label Sep 4, 2023
@kamalcph kamalcph force-pushed the KAFKA-15410c branch 2 times, most recently from 5117f77 to a6ba58a Compare September 5, 2023 10:08
@kamalcph kamalcph marked this pull request as ready for review September 5, 2023 10:09
@kamalcph
Copy link
Collaborator Author

kamalcph commented Sep 5, 2023

@clolov @divijvaidya @showuon @abhijeetk88 @satishd

Call for review. Please take a look when you get chance!

Copy link
Member

@satishd satishd left a comment

Choose a reason for hiding this comment

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

Thanks @kamalcph for the PR. Left a few comments.

@kamalcph
Copy link
Collaborator Author

kamalcph commented Sep 6, 2023

@showuon @satishd

Addressed your review comments. Please take another look.

Copy link
Collaborator

@clolov clolov left a comment

Choose a reason for hiding this comment

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

Thank you for the changes, they make sense to me!

Copy link
Contributor

@showuon showuon left a comment

Choose a reason for hiding this comment

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

LGTM! Just one minor comment. Thanks for adding the tests.

Copy link
Member

@satishd satishd left a comment

Choose a reason for hiding this comment

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

Thanks @kamalcph for addressing the review comments. I have one last comment.

return false;
});
if (isSegmentDeleted) {
remainingBreachedSize = retentionSizeData.isPresent() ?
Copy link
Member

@satishd satishd Sep 7, 2023

Choose a reason for hiding this comment

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

It seems we should not change remainingBreachedSize as that is computed only with the segments that are in the current leader epoch lineage. This is the change/fix that you had putup in earlier.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Good point! Addressed your review comment. PTAL.

Copy link
Member

@satishd satishd left a comment

Choose a reason for hiding this comment

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

Thanks @kamalcph for addressing the review comments. LGTM.

@satishd
Copy link
Member

satishd commented Sep 7, 2023

There are a few test failures unrelated to this change. Merging it to trunk and 3.6.

@satishd satishd merged commit 6e818c6 into apache:trunk Sep 7, 2023
1 check failed
@kamalcph kamalcph deleted the KAFKA-15410c branch September 7, 2023 15:50
satishd pushed a commit that referenced this pull request Sep 7, 2023
#14330)

* Added the integration test for DELETE_RECORDS API for tiered storage enabled topic
* Added validation checks before removing remote log segments for log-start-offset breach

Reviewers: Satish Duggana <satishd@apache.org>, Luke Chen <showuon@gmail.com>, Christo Lolov <lolovc@amazon.com>
mjsax pushed a commit to confluentinc/kafka that referenced this pull request Nov 22, 2023
apache#14330)

* Added the integration test for DELETE_RECORDS API for tiered storage enabled topic
* Added validation checks before removing remote log segments for log-start-offset breach

Reviewers: Satish Duggana <satishd@apache.org>, Luke Chen <showuon@gmail.com>, Christo Lolov <lolovc@amazon.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tiered-storage Pull requests associated with KIP-405 (Tiered Storage)
Projects
None yet
5 participants