You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@rocketmq.apache.org by GitBox <gi...@apache.org> on 2026/10/09 10:27:07 UTC

[GH] (rocketmq/fix/index-service-query-offset-negative-maxnum): Workflow run "Misspell Check" failed!

The GitHub Actions job "Misspell Check" on rocketmq.git/fix/index-service-query-offset-negative-maxnum has failed.
Run started by GitHub user zjncs (triggered by zjncs).

Head commit for run:
ea8af2edad83ac2dd433a703431df5ab2339da10 / zjncs <18...@163.com>
[ISSUE #S5] Clamp negative maxNum in IndexService.queryOffset

maxNum reaches queryOffset straight from QueryMessageRequestHeader, where
it is only checked for null. A negative value survives the
Math.min(maxNum, maxMsgsNumBatch) cap and makes new ArrayList<>(maxNum)
throw IllegalArgumentException: Illegal Capacity, which propagates to the
caller as an opaque failure instead of an empty result. Clamp it to 0.

Signed-off-by: zjncs <18...@163.com>

Report URL: https://github.com/apache/rocketmq/actions/runs/34340047789

With regards,
GitHub Actions via GitBox