You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@rocketmq.apache.org by "yuluo-yx (via GitHub)" <gi...@apache.org> on 2026/08/08 06:33:41 UTC
[I] TraceDataEncoder fails after a truncated trace record [rocketmq]
yuluo-yx opened a new issue, #10837:
URL: https://github.com/apache/rocketmq/issues/10837
TraceDataEncoder.decoderFromTraceDataString indexes fields before verifying the record length. A truncated record throws ArrayIndexOutOfBoundsException and prevents later valid records in the same message from being decoded. Expected behavior: skip truncated records and continue decoding valid records.
--
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: commits-unsubscribe@rocketmq.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] TraceDataEncoder fails after a truncated trace record [rocketmq]
Posted by "RockteMQ-AI (via GitHub)" <gi...@apache.org>.
RockteMQ-AI commented on issue #10837:
URL: https://github.com/apache/rocketmq/issues/10837#issuecomment-5225049733
**Issue Evaluation**
Category: `type/bug` | Status: **Confirmed**
The reported issue has been verified against the current codebase (`develop` branch).
**Root Cause:** `TraceDataEncoder.decoderFromTraceDataString` (line 47) accesses `line[0]` through `line[11]` without checking `line.length` first. A truncated trace record causes `ArrayIndexOutOfBoundsException`, aborting the entire batch decoding.
**Impact:** A single truncated trace record prevents decoding of all subsequent valid records in the same message.
**Severity:** medium
**Affected code:** `client/src/main/java/org/apache/rocketmq/client/trace/TraceDataEncoder.java`
An automated fix proposal will be generated. Reply `/approve` to proceed with PR generation.
---
*Automated evaluation by RockteMQ-AI*
--
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: commits-unsubscribe@rocketmq.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org