ss77892 commented on PR #9535:
URL: https://github.com/apache/ozone/pull/9535#issuecomment-3786823371

   We should also update the Volume statistic. Something like:
   
   >       final long startTime = Time.monotonicNow();
   >       final long bytesRead = readBlockImpl(request, blockFile, 
kvContainer, streamObserver, false);
   >       long endTime = Time.monotonicNow();
   >       KeyValueContainerData containerData = (KeyValueContainerData) 
kvContainer
   >           .getContainerData();
   >       HddsVolume volume = containerData.getVolume();
   >       if (volume != null) {
   >         volume.getVolumeIOStats().incReadTime(endTime - startTime);
   >         volume.getVolumeIOStats().incReadOpCount();
   >         volume.getVolumeIOStats().incReadBytes(bytesRead);
   >       }
   >  


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