Jackie-Jiang opened a new pull request, #20278: URL: https://github.com/apache/pinot/pull/20278
`QueryRoutingTest` can fail for a valid 0 ms response: the latency EWMA starts at 1 ms, so the first update produces 0.334 ms, violating the assertion that it must not exceed the response latency. Observed in [this CI job](https://github.com/apache/pinot/actions/runs/43862186385/job/133281534547?pr=20268). Check the expected EWMA using the previous or initial average in all four latency tests, and disable automatic decay in the fixture so it cannot change the average between the snapshot and assertion. Server errors still use the timeout penalty; successful responses and client errors use measured latency. Validation on JDK 25: - All 32 `QueryRoutingTest` tests passed with `./mvnw -pl pinot-core -am -Dtest=QueryRoutingTest -Dsurefire.failIfNoSpecifiedTests=false -Ppinot-fastdev -Dmaven.compiler.showDeprecation=true -Dmaven.compiler.showWarnings=true test`. - `./mvnw -pl pinot-core spotless:apply checkstyle:check license:format license:check` passed. - A deterministic probe using the CI commit's compiled EWMA implementation confirmed that a zero-latency sample fails the original assertion. -- 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]
