wilfred-s commented on PR #853:
URL: https://github.com/apache/yunikorn-core/pull/853#issuecomment-2071074134

   `GetTotalPartitionResource()` should return a cloned version of the current 
value. The value should not be mutable outside of the partition. A clone would 
prevent that.
   The call is only made in the REST handlers or the health check code, outside 
any test code.Overhead would be minimal and it is the safest solution.


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