zhouxinyu commented on code in PR #4733:
URL: https://github.com/apache/rocketmq/pull/4733#discussion_r933919452


##########
store/src/main/java/org/apache/rocketmq/store/timer/TimerMessageStore.java:
##########
@@ -503,7 +521,7 @@ private void checkBrokerRole() {
         BrokerRole currRole = storeConfig.getBrokerRole();

Review Comment:
   I found that although lastBrokerRole is protected by volatile, 
storeConfig.getBrokerRole is not. Considering the replicas manager will control 
the store config directly, there may be a visibility issue. 
   
   cc @GenerousMan 



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