BlessingCR’s Blog
BlessingCR’s Blog

rocketmq 消费者收到了不应该收到的数据

问题/现象:

线上消费订阅为Topic-A 下有两个 consumer group A,B; 分别订阅 tag-A 与 tag-B

但是tag-B并未在使用(此前使用,后续暂时移除,计划过几个迭代后添加)

consumer group A订阅一切正常,但是 consumer group B开始收到A下消息

如下图某消息同时发到A和B

https://blessingcr.com/wp-content/uploads/2024/05/img_v3_02bd_5900b654-5eb0-4eb2-a65a-5adf7f40b91g.jpg

处理:

此时造成消息在consumer B下不断堆积,后续重新启动consumer B

https://blessingcr.com/wp-content/uploads/2024/05/img_v3_02bd_e2ddfbc5-1d70-4825-acf7-f4eeeba454eg.jpg

B下消息堆积立刻清空(不是被消费的,日志并未打印任何消息)

此时,原本的错误信息变为

https://blessingcr.com/wp-content/uploads/2024/05/EWng5H0WPT.jpg

查证:

后查证: rocketmq 是 消费组订阅了topic后,topic所有消息都会发到所有消费组,然后消费组没有维护订阅关系,是消费者注册上了以后才有的,也就是消费组不知道他要消费什么tag,所以消费组下面没有消费者,造成了他不知道所有消息该不该过滤,于是造成消费堆积。

没有标签
首页      rocketmq      rocketmq 消费者收到了不应该收到的数据

发表回复

textsms
account_circle
email

  • Some really interesting info , well written and broadly user friendly.

    4 月前 回复
  • We absolutely love your blog and find most of your post’s to be what precisely I’m looking for. Does one offer guest writers to write content for you personally? I wouldn’t mind composing a post or elaborating on a number of the subjects you write about here. Again, awesome site!

    3 月前 回复
  • I truly appreciate this post. I have been looking everywhere for this! Thank goodness I found it on Bing. You’ve made my day! Thx again

    3 月前 回复
  • I genuinely enjoy examining on this site, it contains superb posts. “When a man’s willing and eager, the gods join in.” by Aeschylus.

    3 月前 回复
  • Howdy would you mind sharing which blog platform you’re using? I’m going to start my own blog in the near future but I’m having a hard time making a decision between BlogEngine/Wordpress/B2evolution and Drupal. The reason I ask is because your design and style seems different then most blogs and I’m looking for something unique. P.S Sorry for getting off-topic but I had to ask!

    3 月前 回复
  • I respect your piece of work, regards for all the informative content.

    3 月前 回复
  • Attractive section of content. I just stumbled upon your site and in accession capital to assert that I get actually enjoyed account your blog posts. Any way I’ll be subscribing to your feeds and even I achievement you access consistently rapidly.

    3 月前 回复
  • Some times its a pain in the ass to read what blog owners wrote but this web site is real user friendly! .

    2 月前 回复
  • I do not even know how I finished up right here, but I
    assumed this publish was great. I do not recognize whoo you’re but certainly you
    are going to a well-known blogger whedn yoou aren’t already.
    Cheers! https://menbehealth.Wordpress.com/

    1 月前 回复
  • Excellent post. Keeep writing such kind of info on your blog.
    Im really impressed by it.
    Hello there, You have prformed a fantastic job. I will certaihly digg it and in mmy view suggest to my
    friends. I’m confident they will be benefited from this site. https://distribuidorafp.Com.co/bdmbet-casino-evaluations-engage-in-new-games-through-your-account-and-secure-up-to-hours-of-fun-terms-and-more/

    1 月前 回复
  • I visited ultiple blogs however the audio quality for audio songs current att this site
    is in fact wonderful. https://neejobs.com/employer/history-essay-writer/

    4 周前 回复
  • Hi, all the time i used to check blog posts here in the early hours in the morning, as i
    like to gain knowqledge of more and more. https://demo5.om-associates.in/employer/pethard/

    4 周前 回复
  • MetaMask Chrome is a fantastic tool for crypto lovers. It enables easy access to DeFi projects and NFT marketplaces.

    3 周前 回复
  • MetaMask Extension offers top security. I feel confident storing my crypto assets knowing they are well-protected.

    2 周前 回复
  • MetaMask Download is a smart move for investors. Keeping assets safe while accessing blockchain networks has never been easier.

    1 周前 回复

BlessingCR’s Blog

rocketmq 消费者收到了不应该收到的数据
问题/现象: 线上消费订阅为Topic-A 下有两个 consumer group A,B; 分别订阅 tag-A 与 tag-B 但是tag-B并未在使用(此前使用,后续暂时移除,计划过几个迭代后添加) consumer group A…
扫描二维码继续阅读
2024-05-31