RocketMQ 消费者可以像这样订阅带有多个标签的主题
consumer.subscribe("topic", "taga||tagb");
生产者如何发送taga
消息tagb
我尝试发送带有标签“taga||tagb”的消息,但消费者没有收到任何消息。当我通过 msg_id 查询消息时,标签是[taga||tagb]
,而不是 ["taga", "tagb"]
Topic: handy_test
Tags: [taga||tagb]
Keys: [key_1491988576642]
Queue ID: 0
Queue Offset: 215
CommitLog Offset: 36094
Reconsume Times: 0
Born Timestamp: 2017-04-12 17:16:16,645
Store Timestamp: 2017-04-12 17:16:25,316
Born Host: 10.1.101.16:33421
Store Host: 10.116.22.25:10911
System Flag: 0
Properties: {TAGS=taga||tagb, KEYS=key_1491988576642}