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 <[email protected]>
[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 <[email protected]>

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

With regards,
GitHub Actions via GitBox

Reply via email to