You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@rocketmq.apache.org by "btlqql (via GitHub)" <gi...@apache.org> on 2026/08/26 08:23:40 UTC

[I] fix(provider): tolerate null queue entries in topic routes [rocketmq-dashboard]

btlqql opened a new issue, #2624:
URL: https://github.com/apache/rocketmq-dashboard/issues/2624

   ### Problem
   
   `RocketMQAdminClientImpl#getTopic` only checks whether the route queue list is absent or empty before dereferencing its first element. A malformed or partially populated route response whose first queue entry is `null` therefore becomes a generic 500 response, even when a later entry contains usable topic metadata.
   
   ### Proposed change
   
   Select the first usable queue entry, return the existing not-found response when no usable entry exists, and add regression tests for both partial and fully unusable route responses.


-- 
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: commits-unsubscribe@rocketmq.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] fix(provider): tolerate null queue entries in topic routes [rocketmq-dashboard]

Posted by "lizhimins (via GitHub)" <gi...@apache.org>.
lizhimins commented on issue #2624:
URL: https://github.com/apache/rocketmq-dashboard/issues/2624#issuecomment-5507411234

   Resolved by #2628 (merged into rocketmq-studio as 4c130d26).


-- 
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: commits-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] fix(provider): tolerate null queue entries in topic routes [rocketmq-dashboard]

Posted by "RockteMQ-AI (via GitHub)" <gi...@apache.org>.
RockteMQ-AI commented on issue #2624:
URL: https://github.com/apache/rocketmq-dashboard/issues/2624#issuecomment-5423140341

   **Issue Evaluation**
   
   Category: `type/bug` | Status: **Confirmed**
   
   The reported issue is valid. `RocketMQAdminClientImpl#getTopic` does not handle `null` entries in the route queue list, causing a NullPointerException when a malformed route response has a `null` first element. This results in a generic 500 error instead of a graceful response.
   
   **Root Cause:** Missing null-safety check on queue entries before dereferencing `queueList.get(0)`.
   
   **Impact:** Any malformed or partially populated route response causes an unhandled NPE, leading to 500 errors for topic metadata queries.
   
   **Proposed fix assessment:** The approach of selecting the first *usable* (non-null) queue entry is correct. Adding regression tests for both partial and fully unusable route responses ensures the fix is robust.
   
   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: commits-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] fix(provider): tolerate null queue entries in topic routes [rocketmq-dashboard]

Posted by "RockteMQ-AI (via GitHub)" <gi...@apache.org>.
RockteMQ-AI commented on issue #2624:
URL: https://github.com/apache/rocketmq-dashboard/issues/2624#issuecomment-5440321492

   **Issue Evaluation**
   
   Category: bug | Status: **Confirmed**
   
   Valid defensive programming fix. The current code assumes the first queue entry is always non-null, which breaks on malformed route responses. Selecting the first usable (non-null) queue entry is the correct approach.
   
   **Severity:** Low-Medium — causes 500 errors on malformed route data.
   
   ---
   *Automated evaluation by github-manager*


-- 
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: commits-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] fix(provider): tolerate null queue entries in topic routes [rocketmq-dashboard]

Posted by "lizhimins (via GitHub)" <gi...@apache.org>.
lizhimins closed issue #2624: fix(provider): tolerate null queue entries in topic routes
URL: https://github.com/apache/rocketmq-dashboard/issues/2624


-- 
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: commits-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] fix(provider): tolerate null queue entries in topic routes [rocketmq-dashboard]

Posted by "btlqql (via GitHub)" <gi...@apache.org>.
btlqql commented on issue #2624:
URL: https://github.com/apache/rocketmq-dashboard/issues/2624#issuecomment-5422607884

   I am working on this issue and will submit a focused fix with regression coverage.


-- 
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: commits-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org