xichen01 opened a new pull request, #5388:
URL: https://github.com/apache/ozone/pull/5388

   ## What changes were proposed in this pull request?
   Reduce the number of system calls when DN writes a key
   To execute `HddsDispatcher.sendCloseContainerActionIfNeeded` once, need to 
call `getCapacity()` 3 times and `getAvailable()` 2 times.
   The `getCapacity()` and `getAvailable()` are System call, we need reduce the 
System calls.
   In this PR, reduces the number of `getCapacity()` and `getAvailable()` calls 
to once each.
   
   
![image](https://github.com/apache/ozone/assets/32928346/abad087d-3485-4664-b87d-4adea534b0f8)
   
   
   ## What is the link to the Apache JIRA
   https://issues.apache.org/jira/browse/HDDS-9380
   
   ## How was this patch tested?
   Existing Test
   


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