wuchong opened a new issue, #2998:
URL: https://github.com/apache/fluss/issues/2998

   ### Search before asking
   
   - [x] I searched in the [issues](https://github.com/apache/fluss/issues) and 
found nothing similar.
   
   
   ### Description
   
   PR #2948 implements zero-copy for the client side (Netty buffer to 
application). However, `LimitScanResponse` is marked as `isLazilyParsed` but 
does not explicitly release the byte buffer, which may lead to memory leaks.
   
   Concurrently, we are addressing a series of client-side OOM issues related 
to direct memory in #2663. Direct memory is a scarce resource; for instance, 
Flink TaskManagers typically allocate only tens of megabytes, making them 
highly susceptible to OOM errors. Therefore, in #2663, we are refining memory 
management and leveraging heap memory to reduce reliance on direct memory.
   
   Regarding PR #2948, since `CompleteFetch` holds the Netty byte buffer until 
it is consumed, high traffic or backpressure scenarios could trigger 
client-side direct memory OOMs. Consequently, we need to re-evaluate the impact 
of this PR on stability. @loserwang1024 will test whether this PR introduces 
any OOM risks.
   
   cc @polyzos @fresh-borzoni 
   
   ### Willingness to contribute
   
   - [ ] I'm willing to submit a PR!


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to