PrachiKhobragade commented on code in PR #8911:
URL: https://github.com/apache/pinot/pull/8911#discussion_r905598986


##########
pinot-core/src/main/java/org/apache/pinot/core/query/reduce/BaseReduceService.java:
##########
@@ -318,7 +318,7 @@ protected void setStats(String rawTableName, 
BrokerResponseNative brokerResponse
         brokerMetrics.addTimedTableValue(rawTableName, 
BrokerTimer.REALTIME_TOTAL_CPU_TIME_NS, _realtimeTotalCpuTimeNs,
             TimeUnit.NANOSECONDS);
 
-        if (_numConsumingSegmentsProcessed > 0 && _minConsumingFreshnessTimeMs 
> 0) {
+        if (_minConsumingFreshnessTimeMs != Long.MAX_VALUE) {

Review Comment:
   The change in behavior of `minConsumingFreshnessTimeMs` is update it to 
maxEndTIme if `numConsumingSegments == 0` maxEndTIme is end of the segment 
timeInterval, so should never be negative. 
   
   we update the `minConsumingFreshnessTimeMs` only when `maxEndTIme !=  
LONG.MIN` so `minConsumingFreshnessTimeMs` shouldn't get a -ve value



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