noob-se7en commented on code in PR #15783:
URL: https://github.com/apache/pinot/pull/15783#discussion_r2127054487


##########
pinot-core/src/main/java/org/apache/pinot/core/data/manager/realtime/RealtimeSegmentDataManager.java:
##########
@@ -1121,7 +1133,7 @@ protected SegmentBuildDescriptor 
buildSegmentInternal(boolean forCommit) {
       _segmentLogger.error(errorMessage, e);
       _realtimeTableDataManager.addSegmentError(_segmentNameStr, new 
SegmentErrorInfo(now(), errorMessage, e));
       _serverMetrics.addMeteredTableValue(_clientId, 
ServerMeter.SEGMENT_BUILD_FAILURE, 1);

Review Comment:
   I think I will extract the observability logic to a dedicated method inside 
this method only. Don't want callers to emit metrics.



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