baidu / baidu/starlight

BaiduBrpcProtocol 协议存在bytebuf over release 问题

Open
#382 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
976
Forks
279
PR merge metrics
No merged PRs in 30d

Description

![image](https://github.com/baidu/starlight/assets/13257127/f0e17989-f515-438b-95cd-356315f650d3)
多线程并发运行的情况下,bytebuf会出现release 超出count计数器的问题。从而将父buf回收,导致其他buf也跟着回收。

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by tracing the BaiduBrpcProtocol code path that releases ByteBuf instances during concurrent requests. Reproduce the multithreaded case described in the issue and inspect reference-count handling. Done means releases no longer exceed the counter and one buffer's cleanup does not reclaim unrelated buffers.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
backend-api-design, networking
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.