This is an automated email from the ASF dual-hosted git repository.

yuzhou pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/rocketmq-dashboard.git


The following commit(s) were added to refs/heads/master by this push:
     new 3fbaa3a  fix: Duplicate message in the topic tab message list in the 
message menu. (#202)
3fbaa3a is described below

commit 3fbaa3ab920fc6f05f2a5baf5982331e0f8d5dd2
Author: xx <129470203+boomboo...@users.noreply.github.com>
AuthorDate: Mon Nov 4 11:35:17 2024 +0800

    fix: Duplicate message in the topic tab message list in the message menu. 
(#202)
    
    Co-authored-by: xx <x...@123.com>
---
 .../org/apache/rocketmq/dashboard/service/impl/MessageServiceImpl.java  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/src/main/java/org/apache/rocketmq/dashboard/service/impl/MessageServiceImpl.java
 
b/src/main/java/org/apache/rocketmq/dashboard/service/impl/MessageServiceImpl.java
index d51197f..16d0d4e 100644
--- 
a/src/main/java/org/apache/rocketmq/dashboard/service/impl/MessageServiceImpl.java
+++ 
b/src/main/java/org/apache/rocketmq/dashboard/service/impl/MessageServiceImpl.java
@@ -276,7 +276,7 @@ public class MessageServiceImpl implements MessageService {
             int idx = 0;
             for (MessageQueue messageQueue : messageQueues) {
                 Long minOffset = consumer.searchOffset(messageQueue, 
query.getBegin());
-                Long maxOffset = consumer.searchOffset(messageQueue, 
query.getEnd()) + 1;
+                Long maxOffset = consumer.searchOffset(messageQueue, 
query.getEnd());
                 queueOffsetInfos.add(new QueueOffsetInfo(idx++, minOffset, 
maxOffset, minOffset, minOffset, messageQueue));
             }
 

Reply via email to