acvictor opened a new pull request, #11823:
URL: https://github.com/apache/gluten/pull/11823

   ## What changes are proposed in this pull request?
   `ConsistentHash` is annotated with `@ThreadSafe` and guards all access with 
a `ReadWriteLock` but `getPartition()` returns a direct reference to the 
internal mutable `HashSet`. This PR wraps the returned set with 
`Collections.unmodifiableSet()` similar to `getNodes()` which already returns a 
copy.
   
   ## How was this patch tested?
   Existing UTs
   
   ## Was this patch authored or co-authored using generative AI tooling?
   No
   


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