zuston commented on code in PR #1412:
URL: 
https://github.com/apache/incubator-uniffle/pull/1412#discussion_r1441413776


##########
server/src/main/java/org/apache/uniffle/server/ShuffleTaskManager.java:
##########
@@ -766,17 +766,21 @@ private void preAllocatedBufferCheck() {
           removeIds.add(info.getRequireId());
         }
       }
+      int expiredBufferIdsCnt = 0;
       for (Long requireId : removeIds) {
         PreAllocatedBufferInfo info = requireBufferIds.remove(requireId);
         if (info != null) {
           // move release memory code down to here as the requiredBuffer could 
be consumed during
           // removing processing.
           shuffleBufferManager.releaseMemory(info.getRequireSize(), false, 
true);
+          
ShuffleServerMetrics.counterExpiredPreAllocatedBufferSizeTotal.inc(info.getRequireSize());

Review Comment:
   the total expired buffer size is to diagnose cases where allocated metric is 
negative. I will compare these value to check what happen of allocated is 
leaked.



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