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

[refactor][bookkeeper] Refactor ByteBuf release method in bookkeeper-common-allocator #3695

Merged
merged 1 commit into from
Dec 11, 2022

Conversation

HQebupt
Copy link
Contributor

@HQebupt HQebupt commented Dec 7, 2022

Motivation

It may throw an exception when release a ByteBuf object. So the exception in ByteBuf.release should be checked.

Changes

Use ReferenceCountUtil.safeRelease() instead of ByteBuf.release().

Master Issue: #6

@StevenLuMT StevenLuMT merged commit 004dfa8 into apache:master Dec 11, 2022
yaalsn pushed a commit to yaalsn/bookkeeper that referenced this pull request Jan 30, 2023
@hangc0276 hangc0276 added this to the 4.16.0 milestone Mar 21, 2023
Ghatage pushed a commit to sijie/bookkeeper that referenced this pull request Jul 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants