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

   **Issue Evaluation**
   
   Category: `bug` | Status: **Confirmed**
   
   The unguarded `getMessageQueueOffset().get(i)` call in 
`EscapeBridge.decodeMsgList` has been verified against the current `develop` 
branch.
   
   **Root Cause:** In `EscapeBridge.java` (line ~358), the method iterates 
`messageBufferList` and unconditionally reads 
`getMessageResult.getMessageQueueOffset().get(i)`. If the queue-offset metadata 
list is null, shorter than the buffer list, or missing entries, this throws 
`IndexOutOfBoundsException` or `NullPointerException`.
   
   **Impact:** A recoverable failover-read metadata inconsistency becomes a 
hard failure, dropping valid messages that could otherwise be decoded.
   
   **Severity:** Medium — affects escape-bridge reliability during broker 
failover with incomplete metadata.
   
   **Verified at:** 
`broker/src/main/java/org/apache/rocketmq/broker/failover/EscapeBridge.java:341-367`
   
   An automated fix proposal can 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