rocketmq icon indicating copy to clipboard operation
rocketmq copied to clipboard

Rocketmq Dashboard 查看消息详情异常。

Open AI1186780944 opened this issue 2 years ago • 3 comments

Before Creating the Bug Report

  • [X] I found a bug, not just asking a question, which should be created in GitHub Discussions.

  • [X] I have searched the GitHub Issues and GitHub Discussions of this repository and believe that this is not a duplicate.

  • [X] I have confirmed that this bug belongs to the current repository, not other repositories of RocketMQ.

Runtime platform environment

OS:unbuntu

RocketMQ version

rocketmq:5.1.3 Rocketmq Dashboard版本:1.0.0。

JDK Version

Oracle JDK 20

Describe the Bug

当客户端生产者在使用proxy代理的情况下,发送的消息。想通过Rocketmq Dashboard查看消息的消费情况,会出现”ERROR Occur service exception: Failed to query message by Id: 0108719066FF9A489C04DB99CA00000003“的异常错误。但是如果客户端生产者不指向proxy,而是直接向namesrv发送的消息,这种情况下是可以正常查看消息的消费情况的。为什么会出现这种现象?

Steps to Reproduce

Rocketmq Dashboard的namesrvAddr指向是rocketmq-namesrv地址(无法指向proxy的remoting或者grpc端口,会发生错误)。

What Did You Expect to See?

正常查看消息的消费情况

What Did You See Instead?

会出现”ERROR Occur service exception: Failed to query message by Id: 0108719066FF9A489C04DB99CA00000003“的异常错误。

Additional Context

No response

AI1186780944 avatar Aug 03 '23 07:08 AI1186780944

由于5.0 sdk 修改了messageid的生成规则,在页面查询的时候,会解析mesageid中的时间戳,这时候解析是错的,就会导致你查不到消息,需要修改dashboard的代码,兼容这个场景

leizhiyuan avatar Aug 09 '23 03:08 leizhiyuan

由于5.0 sdk 修改了messageid的生成规则,在页面查询的时候,会解析mesageid中的时间戳,这时候解析是错的,就会导致你查不到消息,需要修改dashboard的代码,兼容这个场景

非常感谢。我已经完成了对代码的改造。

AI1186780944 avatar Aug 09 '23 05:08 AI1186780944

由于5.0 sdk 修改了messageid的生成规则,在页面查询的时候,会解析mesageid中的时间戳,这时候解析是错的,就会导致你查不到消息,需要修改dashboard的代码,兼容这个场景

非常感谢。我已经完成了对代码的改造。 怎么更改代码呢

pzx6b666 avatar May 28 '24 07:05 pzx6b666

怎么修改 Rocketmq Dashboard 的代码啊?

idealzouhu avatar Sep 03 '24 11:09 idealzouhu