apache / apache/rocketmq

TraceDataEncoder fails after a truncated trace record

Open Beginner friendly
#10,837 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
22.6k
Forks
12k
Avg merge
3d 1h
Merged PRs (30d)
27

Description

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.

Contributor guide

Open the contributing guide

Research direction

Locate TraceDataEncoder.decoderFromTraceDataString and trace how records are processed before field access. Reproduce the failure with a truncated record followed by a valid record, then add or update a regression test showing that the truncated record is skipped and the valid record is decoded.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
stream-processing
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
70/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.