Skip to content

[client] fix writeLac memory leak#4713

Open
wenbingshen wants to merge 1 commit intoapache:masterfrom
wenbingshen:wenbing/fix_writeLac_memoryLeak
Open

[client] fix writeLac memory leak#4713
wenbingshen wants to merge 1 commit intoapache:masterfrom
wenbingshen:wenbing/fix_writeLac_memoryLeak

Conversation

@wenbingshen
Copy link
Member

@wenbingshen wenbingshen commented Feb 13, 2026

Motivation

When I set explicitLacInterval and enable netty memory leak detection, I find that PendingWriteLacOp has a memory leak, as shown below:

Clipboard_Screenshot_1770968282

Changes

When PendingWriteLacOp completes, execute ReferenceCountUtil.release(toSend) to release toSend.

After applying this PR, netty detecter will no longer detect leaks during local verification.

@wenbingshen wenbingshen force-pushed the wenbing/fix_writeLac_memoryLeak branch from 2490683 to 13bf105 Compare February 13, 2026 08:04
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.

1 participant