normanmaurer opened a new pull request #26660: [SPARK-29971][CORE] Fix buffer 
leaks in `TransportFrameDecoder/Transp…
URL: https://github.com/apache/spark/pull/26660
 
 
   …ortCipher`
   
   - Correctly release `ByteBuf` in `TransportCipher` in all cases
   - Move closing / releasing logic to `handlerRemoved(...)` so we are 
guaranteed that is always called.
   
   We need to carefully manage the ownership / lifecycle of `ByteBuf` instances 
so we don't leak any of these. We did not correctly do this in all cases:
    - when end up in invalid cipher state.
    - when partial data was received and the channel is closed before the full 
frame is decoded
   
   Fixes https://github.com/netty/netty/issues/9784.
   
   No.
   
   Pass the newly added UTs.
   
   Closes #26609 from normanmaurer/leaks_2_4.
   
   Authored-by: Norman Maurer <[email protected]>

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to