apache / apache/incubator-seata
bugreport: seems threadlocal memory leak,please fix it .
- Dominant language
- Java
- Stars
- 26k
- Forks
- 8.8k
- Avg merge
- 1d 8h
- Merged PRs (30d)
- 4
Description
https://github.com/seata/seata/blob/23924bb4d03aa03310699ad9cef2047835ffb32a/server/src/main/java/io/seata/server/session/BranchSession.java#L46
https://github.com/seata/seata/blob/23924bb4d03aa03310699ad9cef2047835ffb32a/server/src/main/java/io/seata/server/session/GlobalSession.java#L54
id didn't find byteBufferThreadLocal.remove()
Contributor guide
Research direction
Start with server/src/main/java/io/seata/server/session/BranchSession.java at line 46 and GlobalSession.java at line 54, then trace the byteBufferThreadLocal lifecycle. Check where the ThreadLocal is created and cleared, and define done as preventing retained thread-local state by ensuring the appropriate cleanup is covered by tests.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- backend, distributed-systems
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100