You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@rocketmq.apache.org by "zergduan (via GitHub)" <gi...@apache.org> on 2025/11/23 14:56:52 UTC

[I] Consumer页面有几率触发丢失客户端信息的BUG [rocketmq-dashboard]

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

   版本:
   Commit ce8306a
   
   刷新浏览器或者点解Consumer页面的刷新按钮,有几率丢失客户端数据
   
   <img width="3840" height="1269" alt="Image" src="https://github.com/user-attachments/assets/ad73ce09-42eb-4dfa-8179-4609f221ccae" />
   
   刷新页面或者点击刷新按钮多次后,如下图客户端数据丢失:
   
   <img width="3750" height="1310" alt="Image" src="https://github.com/user-attachments/assets/b9d99464-0afa-42de-8c4d-acc4279e3ffd" />
   
   
   dashboard日志中报错如下:
   
   [2025-11-23 22:44:55.357] WARN QueryGroup_2 - examineConsumeStats exception to consumerGroup CG-UAT-PRM-SMS-PRM-SMS, response [send request to </127.0.0.1:8080> failed]
   [2025-11-23 22:44:55.359] ERROR QueryGroup_4 - examineConsumerConnectionInfo error
   org.apache.rocketmq.remoting.exception.RemotingSendRequestException: send request to </127.0.0.1:8080> failed
           at org.apache.rocketmq.remoting.netty.NettyRemotingAbstract.invokeSyncImpl(NettyRemotingAbstract.java:505)
           at org.apache.rocketmq.remoting.netty.NettyRemotingClient.invokeSync(NettyRemotingClient.java:565)
           at org.apache.rocketmq.dashboard.service.client.ProxyAdminImpl.examineConsumerConnectionInfo(ProxyAdminImpl.java:43)
           at jdk.internal.reflect.GeneratedMethodAccessor17.invoke(Unknown Source)
           at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
           at java.base/java.lang.reflect.Method.invoke(Method.java:569)
           at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:359)
           at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:196)
           at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)
           at org.springframework.aop.aspectj.MethodInvocationProceedingJoinPoint.proceed(MethodInvocationProceedingJoinPoint.java:89)
           at org.apache.rocketmq.dashboard.aspect.admin.MQAdminAspect.aroundMQAdminMethod(MQAdminAspect.java:98)
           at jdk.internal.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
           at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
           at java.base/java.lang.reflect.Method.invoke(Method.java:569)
           at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethodWithGivenArgs(AbstractAspectJAdvice.java:642)
           at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethod(AbstractAspectJAdvice.java:632)
           at org.springframework.aop.aspectj.AspectJAroundAdvice.invoke(AspectJAroundAdvice.java:71)
           at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:184)
           at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:97)
           at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:184)
           at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:728)
           at org.apache.rocketmq.dashboard.service.client.ProxyAdminImpl$$SpringCGLIB$$0.examineConsumerConnectionInfo(<generated>)
           at org.apache.rocketmq.dashboard.service.impl.ConsumerServiceImpl.queryGroup(ConsumerServiceImpl.java:264)
           at org.apache.rocketmq.dashboard.service.impl.ConsumerServiceImpl.lambda$makeGroupListCache$1(ConsumerServiceImpl.java:209)
           at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539)
           at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
           at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
           at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
           at java.base/java.lang.Thread.run(Thread.java:840)
   Caused by: org.apache.rocketmq.remoting.exception.RemotingSendRequestException: send request to </127.0.0.1:8080> failed
           at org.apache.rocketmq.remoting.netty.ResponseFuture.executeInvokeCallback(ResponseFuture.java:70)
           at org.apache.rocketmq.remoting.netty.NettyRemotingAbstract.lambda$executeInvokeCallback$2(NettyRemotingAbstract.java:412)
           ... 5 common frames omitted
   [2025-11-23 22:44:55.359] WARN QueryGroup_4 - examineConsumeStats exception to consumerGroup CG-UAT-PRM-EMAIL-PRM-EMAIL, response [send request to </127.0.0.1:8080> failed]
   [2025-11-23 22:44:55.359] INFO http-nio-8080-exec-8 - All consumer group query tasks have been completed
   
   
   可见多次刷新后,dashboard无视页面中disable proxy的设置,依然试图通过proxy (默认设置127.0.0.1:8080)获取消费者信息;这应该是一个bug;
   
   目前解决此问题的方法是:
   1. 手动点击页面中 Enable Proxy 按钮2次(重置disable状态)
   2. 点击REFRESH按钮,消费者信息恢复正常
   
   <img width="3825" height="1338" alt="Image" src="https://github.com/user-attachments/assets/48147288-e1da-4297-ad1b-73415b79fc27" />


-- 
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] Consumer页面有几率触发丢失客户端信息的BUG [rocketmq-dashboard]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #387:
URL: https://github.com/apache/rocketmq-dashboard/issues/387#issuecomment-5040438442

   This issue has been automatically closed because there has been no activity for 7 days. If you believe this issue is still relevant, please reopen it with updated information.


-- 
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] Consumer页面有几率触发丢失客户端信息的BUG [rocketmq-dashboard]

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

   临时解决方案,编译前将proxy的地址默认值设置为空,即修改 src/main/resources/application.yml
   
       proxyAddrs:
         - 127.0.0.1:8080
   -->
       proxyAddrs:
   #      - 127.0.0.1:8080


-- 
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] Consumer页面有几率触发丢失客户端信息的BUG [rocketmq-dashboard]

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

   此BUG的原因有两点:
   1. 浏览器刷新后,Consumer页面的Select Proxy的值从空变为了127.0.0.1:8080(默认值)
   2. Consumer页面的REFRESH按钮不遵循Enable Proxy的设置,即:即使Enable Proxy设置为Disable,REFRESH按钮依然会使用Select Proxy的值获取Consumer信息
   
   
   <img width="1920" height="231" alt="Image" src="https://github.com/user-attachments/assets/2c41f638-e906-4167-8616-b4f8beb23835" />
   
   <img width="1919" height="162" alt="Image" src="https://github.com/user-attachments/assets/0be8a613-bad2-4785-b644-654c9c68c5d2" />
   


-- 
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] Consumer页面有几率触发丢失客户端信息的BUG [rocketmq-dashboard]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] closed issue #387: Consumer页面有几率触发丢失客户端信息的BUG
URL: https://github.com/apache/rocketmq-dashboard/issues/387


-- 
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] Consumer页面有几率触发丢失客户端信息的BUG [rocketmq-dashboard]

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

   这个bug 100%触发的方法:
   1. 启动dashboard浏览器,第一次进入Consumer页面,消费者信息正常显示
   2. 刷新浏览器,此时消费者信息正常
   3. 点击页面中的REFES按钮,触发bug,消费者信息丢失
   
   恢复消费者信息方法:
   1. 点击两次Enable Proxy按钮,最终让Enable Proxy重置为disable状态
   2. 点击REFESH按钮,消费者信息恢复正常


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