You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@rocketmq.apache.org by "tju-yxq (via GitHub)" <gi...@apache.org> on 2026/08/11 14:32:01 UTC

[I] [Bug] queryByTopic results are not sorted by timestamp [rocketmq-dashboard]

tju-yxq opened a new issue, #1828:
URL: https://github.com/apache/rocketmq-dashboard/issues/1828

   queryByTopic returns messages in queue iteration order, not chronological order. When a topic has multiple queues, messages from different queues are interleaved arbitrarily, making it hard to find recent messages. Fix: sort the result list by storeTime before returning.


-- 
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] [Bug] queryByTopic should return records in a stable timestamp order [rocketmq-dashboard]

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

   Fixed in merged PR #2043 (`fae6c5a9`). Topic queries now retain the newest messages across all queues with deterministic ordering for equal timestamps.


-- 
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] [Bug] queryByTopic results are not sorted by timestamp [rocketmq-dashboard]

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

   Thank you for providing the additional details. The issue has been updated with sufficient information for verification.
   
   **Next steps:** The issue will be re-evaluated and verified against the codebase. If confirmed as a valid bug, a fix will be proposed.
   
   ---
   *Automated response 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] [Bug] queryByTopic should return records in a stable timestamp order [rocketmq-dashboard]

Posted by "tju-yxq (via GitHub)" <gi...@apache.org>.
tju-yxq closed issue #1828: [Bug] queryByTopic should return records in a stable timestamp order
URL: https://github.com/apache/rocketmq-dashboard/issues/1828


-- 
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] [Bug] queryByTopic results are not sorted by timestamp [rocketmq-dashboard]

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

   **Issue Evaluation**
   
   Category: `bug` | Status: **Needs Info**
   
   Thank you for reporting this issue. To proceed with verification, please provide:
   - [ ] Version/tag where this occurs
   - [ ] Steps to reproduce
   - [ ] Expected vs actual behavior
   - [ ] Relevant logs or stack traces
   
   ---
   *Automated evaluation by github-manager-bot*


-- 
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] [Bug] queryByTopic results are not sorted by timestamp [rocketmq-dashboard]

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

   @RockteMQ-AI All requested information is already included in the issue body above:
   
   - **Version/tag**: `rocketmq-studio` branch, commit `bce4b10`
   - **Steps to reproduce**: Query messages by topic with a time range in RocketMQ Studio. The `queryByTopic()` method iterates through message queues sequentially, adding results in queue order (queue 0 first, then queue 1, etc.) without sorting by timestamp.
   - **Expected**: Messages sorted by `storeTimestamp` (most recent first) for easy browsing.
   - **Actual**: Messages returned in queue iteration order — messages from queue 0 (possibly older) appear before messages from queue 1 (possibly newer), making it difficult to find recent messages.
   - **Relevant logs**: No error logs — this is a behavioral issue, not a crash. The result list is simply unsorted.
   
   The fix sorts results by `storeTimestamp` before returning: `result.sort(Comparator.comparingLong(MessageRecordVO::getStoreTime).reversed());`


-- 
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