Bin2020 opened a new issue #365:
URL: https://github.com/apache/rocketmq-spring/issues/365
broker
1主1从同步双写,从broker宕机,发送同步消息。RocketMQTemplate应答SEND_OK,DefaultMQProducer应答SLAVE_NOT_AVAILABLE,为什么
```
SendResult sendResult = rocketMQTemplate.syncSend("testTopic", "test");
System.out.println(sendResult.getSendStatus()); // SEND_OK
DefaultMQProducer producer = new TransactionMQProducer("my-group2");
producer.setNamesrvAddr("127.0.0.1:9876");
producer.start();
org.apache.rocketmq.common.message.Message msg = new
org.apache.rocketmq.common.message.Message("testTopic",
"test".getBytes(StandardCharsets.UTF_8));
SendResult sendResult2 = producer.send(msg);
System.out.println(sendResult2.getSendStatus()); // SLAVE_NOT_AVAILABLE
```
--
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:
[email protected]