timothy-e opened a new pull request, #17749:
URL: https://github.com/apache/pinot/pull/17749

   When `ingestionInfo` is null or `firstStreamIngestionTimeMs` is negative 
(e.g., `Long.MIN_VALUE`), the method incorrectly computed `clock.millis() - 0`, 
returning ~1.7 trillion ms instead of 0 and e2e lag showing as ~56 years (1970).
   
   This fix adds an early return of 0 for invalid/missing timestamps, restoring 
the original behavior from upstream commit 
[bea67d04](https://github.com/apache/pinot/commit/bea67d04).
   
   ```
   $ mvn test -pl pinot-core -Dtest=IngestionDelayTrackerTest 
-DfailIfNoTests=false
   
   [INFO] Running 
org.apache.pinot.core.data.manager.realtime.IngestionDelayTrackerTest
   [INFO] Tests run: 9, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.797 
s -- in org.apache.pinot.core.data.manager.realtime.IngestionDelayTrackerTest
   [INFO] 
org.apache.pinot.core.data.manager.realtime.IngestionDelayTrackerTest.testIngestionDelay
 -- Time elapsed: 0.147 s
   [INFO] 
org.apache.pinot.core.data.manager.realtime.IngestionDelayTrackerTest.testRecordIngestionDelayOffset
 -- Time elapsed: 0 s
   [INFO] 
org.apache.pinot.core.data.manager.realtime.IngestionDelayTrackerTest.testRecordIngestionDelayWithAging
 -- Time elapsed: 0 s
   [INFO] 
org.apache.pinot.core.data.manager.realtime.IngestionDelayTrackerTest.testRecordIngestionDelayWithNoAging
 -- Time elapsed: 0.016 s
   [INFO] 
org.apache.pinot.core.data.manager.realtime.IngestionDelayTrackerTest.testShutdown
 -- Time elapsed: 0.003 s
   [INFO] 
org.apache.pinot.core.data.manager.realtime.IngestionDelayTrackerTest.testStopTrackingIngestionDelay
 -- Time elapsed: 0.003 s
   [INFO] 
org.apache.pinot.core.data.manager.realtime.IngestionDelayTrackerTest.testStopTrackingIngestionDelayWithSegment
 -- Time elapsed: 0.003 s
   [INFO] 
org.apache.pinot.core.data.manager.realtime.IngestionDelayTrackerTest.testTrackerConstructors
 -- Time elapsed: 0.001 s
   [INFO] 
org.apache.pinot.core.data.manager.realtime.IngestionDelayTrackerTest.testUpdateLatestStreamOffset
 -- Time elapsed: 0.003 s
   [INFO] Tests run: 9, Failures: 0, Errors: 0, Skipped: 0
   [INFO] BUILD SUCCESS
   ```
   
   This has also been running internally on our Pinot clusters for a few weeks 
with no issues - prior to this bug fix, we saw 56 year ingestion lag in several 
cases (sometimes intermittently). 


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