You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@rocketmq.apache.org by GitBox <gi...@apache.org> on 2020/10/09 03:21:45 UTC

[GitHub] [rocketmq] YAGAMIL commented on issue #2339: 消费者不主动消费信息,之只能通过控制台手动点击消费才可以

YAGAMIL commented on issue #2339:
URL: https://github.com/apache/rocketmq/issues/2339#issuecomment-705944745


   我找到问题了,当我把Topic4SingleRunConsumer类中的注解改为字符串而非常量的时候,启动后就可以主动消费到信息了,如下所示:
   ![image](https://user-images.githubusercontent.com/16757285/95539507-2243cf80-0a21-11eb-8436-192bd1cfa309.png)
   而原本是这样
   ![image](https://user-images.githubusercontent.com/16757285/95539542-3b4c8080-0a21-11eb-8622-55cbb8d89947.png)
   这样的话可以消费到,但问题是,这两个内容完全一样,出了一个使用了常量名一个直接用字符串值,没有任何区别,其次,如果他们两个不等同,那么我用常量名赋值的时候,虽然不能主动消费到信息,但我在控制台中resend Message却可以手动消费到,重发消息后收到消息的也确实是Topic4SingleRunConsumer类,这也太奇怪了吧
   


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

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