TraceDataEncoder fails after a truncated trace record
Open
Beginner friendly
- 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
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