apache / rocketmq-spring

Apache RocketMQ Spring Integration
https://rocketmq.apache.org/
Apache License 2.0
2.12k stars 898 forks source link

Sometimes garbled when send string message in sync mode #220

Closed focuseven closed 4 years ago

focuseven commented 4 years ago

RocketMQTemplate.syncSend(destination,MessageBuilder.withPayload(message).setHeader(RocketMQHeaders.KEYS, key).build());

message is a simple string eg:1578301060412568,store data turns out 157830106041256�

broker version:4.6.0 rocketmq-spring-boot-starter:2.0.4

This happens at random,is it a bug?

RongtongJin commented 4 years ago

Could you help to reproduce the issue? It is helpful to find the bug.

focuseven commented 4 years ago

I recreated that topic,it no longer happen. I try to create a new topic to send the same data,it works fine. I trans the Problematic historical data like157830106041256� to binary perform, all start with 1,