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] [server] Refactor ByteBuf release method in module distributedlog-core #3691

Merged

Conversation

StevenLuMT
Copy link
Contributor

Motivation

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

Changes

  1. Use ReferenceCountUtil.safeRelease() instead of ByteBuf.release() in module distributedlog-core

Copy link
Contributor

@HQebupt HQebupt left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Member

@horizonzy horizonzy left a comment

Choose a reason for hiding this comment

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

LGTM.

@StevenLuMT StevenLuMT merged commit 7ae5a04 into apache:master Dec 6, 2022
@StevenLuMT StevenLuMT added this to the 4.16.0 milestone Dec 6, 2022
hangc0276 pushed a commit that referenced this pull request Dec 8, 2022
Co-authored-by: lushiji <lushiji@didiglobal.com>
(cherry picked from commit 7ae5a04)
nicoloboschi pushed a commit to datastax/bookkeeper that referenced this pull request Jan 11, 2023
Co-authored-by: lushiji <lushiji@didiglobal.com>
(cherry picked from commit 7ae5a04)
(cherry picked from commit eaf3996)
yaalsn pushed a commit to yaalsn/bookkeeper that referenced this pull request Jan 30, 2023
Co-authored-by: lushiji <lushiji@didiglobal.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants