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/08/30 15:57:14 UTC
[GH] (rocketmq/fix/round2-npe-and-ioobe-guards): Workflow run "Build and Run Tests by Bazel" failed!
The GitHub Actions job "Build and Run Tests by Bazel" on rocketmq.git/fix/round2-npe-and-ioobe-guards has failed.
Run started by GitHub user btlqql (triggered by btlqql).
Head commit for run:
2a6dbf13beab96dc621ef82975fea28eb4d4e95e / btlqql <29...@qq.com>
fix: guard NPE/IOOBE edge cases in admin, transaction, store and http client
- AdminBrokerProcessor.queryCorrectionOffset: correctionOffset.get(queueId)
is null when the compare group has an offset for a queue no other group
consumed; the ternary auto-unboxed it and threw NPE. Guard with a null check.
- ConsumeQueue.estimateMessageCount: consumeQueueExt.get(tagCode) returns null
for entries written before ext was enabled (or after a failed ext put); the
NPE on ext.getTagsCode() broke consumer-lag metrics. Skip when ext is null.
- TransactionalMessageServiceImpl: opMsg can be a non-null empty list, so
opMsg.get(opMsg.size() - 1) threw IndexOutOfBoundsException and aborted the
whole transaction check pass. Guard with !opMsg.isEmpty().
- HttpTinyClient: HttpURLConnection.getErrorStream() is null when the error
response has no body; toString(null) NPE'd and broke namesrv discovery via
DefaultTopAddressing. Guard both httpGet and httpPost.
Compiled and verified on the build server (mvn -pl broker -am compile).
Report URL: https://github.com/apache/rocketmq/actions/runs/30644916506
With regards,
GitHub Actions via GitBox