MatrixHB commented on issue #3750:
URL: https://github.com/apache/rocketmq/issues/3750#issuecomment-1011904645


   > Can you show your broker.conf? and whether your cluster is in Dledger mode?
   > 
   > This should not be a disk usage issue.
   > 
   > There are probably three reasons if you get 
`ResponseCode.SERVICE_NOT_AVAILABLE`:
   > 
   > 1. The `MessageStore` is shutdown
   > 2. Your producer writes data to slave node.
   >    3.Your producer writes data to the master, but its write permission is 
disabled.
   > 
   > For detail, I think you shoud follow the source code.
   
   Above is right. 
   If you are not using Dledger mode (enableDLegerCommitLog = false in 
brokerConfig)
   then Look at source code 
`org.apache.rocketmq.store.DefaultMessageStore#checkStoreStatus`
   check whether the corresponding log appears, like `grep -C20 'broke role is 
slave,' store.log`
   Then locate the cause.


-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to