-
Notifications
You must be signed in to change notification settings - Fork 13
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
Fix LogSegment static init after 3.8.0 #230
Conversation
Thanks, I'll give that a spin. If I understood the problem right (from @showuon), it would lead to a disk full issue. |
The issue can be replicated by creating a topic with multiple segments in a partition (by pushing a few G of data through a 1 partition topic). Then delete the topic. It will get part way through deleting the first segment and then blow up while trying to handle the transaction file, leaving the rest of the segments in place.
and in another terminal:
server logs contain the NPE:
which occurs during the deletion of the first segment, and remaining segment files are left on disk:
|
The NPE can be provoked just by creating and deleting a topic (and waiting a while for the scheduled file deletion job to kick in), the above shows how deleted topic data gets left uncleaned. |
I'll give the fix a spin now |
IIRC the log cleaner delay is configured to a lower value than default. Maybe it'd be easy to write an IT to check this. |
Looks good to me. The NPE is gone and the topic's directory gets removed by the cleaner.
I'd like to spin a defect fix release (0.11.1) once this lands. |
Resolves #228
@k-wall I am not sure how I can reproduce the error case. but the generated bytecode is correct :