apache / apache/rocketmq

TopicConfig.decode mutates state or throws for malformed config

Open Beginner friendly
#10,835 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

TopicConfig.decode assigns topicName before parsing numeric and enum fields. A malformed serialized config can throw IllegalArgumentException after partially mutating the target object. Expected behavior: return false and leave the existing object unchanged when mandatory fields cannot be parsed.

Contributor guide

Open the contributing guide

Research direction

Start at TopicConfig.decode and trace how topicName, numeric fields, and enum fields are parsed and assigned. Verify malformed mandatory fields return false without changing the existing object, and confirm valid configurations still decode successfully.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.