RockteMQ-AI commented on issue #10835:
URL: https://github.com/apache/rocketmq/issues/10835#issuecomment-5225049892

   **Issue Evaluation**
   
   Category: `type/bug` | Status: **Confirmed**
   
   The reported issue has been verified against the current codebase (`develop` 
branch).
   
   **Root Cause:** `TopicConfig.decode` (line 115) assigns `this.topicName = 
strs[0]` before parsing numeric fields. If `Integer.parseInt(strs[1])` or 
subsequent parsing throws, the object is already partially mutated with the new 
topic name.
   
   **Impact:** Malformed serialized config can leave TopicConfig in an 
inconsistent state where topicName is updated but other fields retain old 
values.
   
   **Severity:** medium
   
   **Affected code:** 
`common/src/main/java/org/apache/rocketmq/common/TopicConfig.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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to