yyqdbngt opened a new pull request, #3785: URL: https://github.com/apache/rocketmq-dashboard/pull/3785
### Motivation The existing `ConsumerLagResolverTest` covers positive diffs, the no-proxy unknown fallback and the noop-proxy fallback, but not the boundary values of the proxy path nor very large broker diffs. ### Changes - `proxyReportedZeroLagIsReturned`: when the proxy transport reports an authoritative zero lag, the resolver returns 0 instead of the unknown sentinel. - `proxyReportedUnknownIsReturnedVerbatim`: a proxy that itself reports the unknown sentinel keeps that value, so the genuine unknown state survives the fallback. - `largeValidDiffIsReturnedAsIs`: a positive diff at the `long` boundary is passed through untouched. ### Verification ``` mvn -B test -Dtest=ConsumerLagResolverTest [INFO] Tests run: 8, Failures: 0, Errors: 0, Skipped: 0 [INFO] BUILD SUCCESS ``` -- 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]
