I tried to send batch messages to topic with this method below:
public SendResult send(Collection<Message> msgs,
MessageQueue messageQueue) throws MQClientException, RemotingException, MQBrokerException, InterruptedException {
return this.defaultMQProducerImpl.send(batch(msgs), messageQueue);
}
but when I consume the topic, the tags changed. More detail,I set "batch" as tags when produce,but get "batchCLUSTERt0" as tags when consume,it changed!
i tried on my PC with codes bellow, but can't re-produce what you meet. can you show how your producer codes with set tags.
consumer result print