richardstartin commented on pull request #7617: URL: https://github.com/apache/pinot/pull/7617#issuecomment-949950995
You're right, `System.nanoTime()` does not record wall time. `System.currentTimeMillis() - bufferTimeMs` is an elapsed time (a duration), unless I'm missing something? The problem is that the expression `(Math.min(System.currentTimeMillis() - bufferTimeMs, maxEndTimeMs) - watermarkMs) / bucketTimeMs` can produce negative delays, which doesn't make sense. -- 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: commits-unsubscr...@pinot.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@pinot.apache.org For additional commands, e-mail: commits-h...@pinot.apache.org