-
Notifications
You must be signed in to change notification settings - Fork 14k
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-5752: Update timeIndex, txnIndex file pointers to renamed (to be deleted) files #3700
Conversation
didn't find any easy way to test this. pl let me know if you have any ideas |
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 for the PR. With regards to the test, asyncDelete
could return the removed log and we can inspect that the segments and log all point to the renamed directory.
We should probably also add a test that deletes a topic and adds it back as this tends to uncover issues. |
@ijuma added a simple test to check the file pointers. |
@omkreddy thanks for the update. A few suggested improvements: If you agree, please include them in your PR. |
@ijuma Thanks for the improvements. Updated the PR with your changes. |
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, LGTM. Will merge to trunk and 0.11.0 branches after the Jenkins builds complete.
timeIndex and txnIndex were not being updated previously. Author: Manikumar Reddy <manikumar.reddy@gmail.com> Reviewers: Ismael Juma <ismael@juma.me.uk> Closes #3700 from omkreddy/KAFKA-5752 (cherry picked from commit 3615ef7) Signed-off-by: Ismael Juma <ismael@juma.me.uk>
No description provided.