-
Notifications
You must be signed in to change notification settings - Fork 901
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
Journal scan should throw IOException when it reads negative length #2176
Comments
can you add version and stacktrace please? maybe FS type In my opinion the fix is simple |
Descriptions of the changes in this PR: ### Motivation During journal replay, we can encounter negative length value if there is journal corruption. Currently, due to this bug, we pass negative length to limit a buffer, which throws IllegalArgumentException. ### Changes Updated the Journal class to throw `IOException` with a clear message, instead of unclear `IllegalArgumentException`. Master Issue: #2176 Reviewers: Enrico Olivelli <eolivelli@gmail.com>, Charan Reddy Guttapalem <reddycharan18@gmail.com> This closes #2177 from karanmehta93/master
Can I please be assigned this issue? |
@atris Please verify if there is an PR hanging out there, otherwise you can take it up! |
Unfortunately we can't assign github issues to people who never contributed to the repository, or maybe even to non "committers" |
Ok, I am working on this one. |
BUG REPORT
Describe the bug
During journal replay, we can encounter negative length value if there is journal corruption. Currently, due to this bug, we pass negative length to limit a buffer, which throws
IllegalArgumentException
.To Reproduce
Minor bug, good to have for debugging.
Expected behavior
Error handling should be done via IOExpection, and it should be thrown instead.
The text was updated successfully, but these errors were encountered: