770120041 opened a new pull request, #15547:
URL: https://github.com/apache/iceberg/pull/15547

   ## Summary
   Fix ThreadLocal memory leak in `CommitMetadata` by replacing 
`COMMIT_PROPERTIES.set(ImmutableMap.of())` with `COMMIT_PROPERTIES.remove()` in 
the finally block.
   
   Using `set()` with an empty map keeps the entry in the ThreadLocal map, 
causing a capacity leak over time. `remove()` properly cleans up the entry from 
the thread's ThreadLocalMap.
   
   Fixes #15284


-- 
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]


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

Reply via email to