jianghuazhu commented on code in PR #7145:
URL: https://github.com/apache/ozone/pull/7145#discussion_r1766681272


##########
hadoop-hdds/container-service/src/main/java/org/apache/hadoop/ozone/container/ozoneimpl/OzoneContainer.java:
##########
@@ -478,10 +478,10 @@ public void start(String clusterId) throws IOException {
     replicationServer.start();
     datanodeDetails.setPort(Name.REPLICATION, replicationServer.getPort());
 
-    writeChannel.start();
-    readChannel.start();
     hddsDispatcher.init();
     hddsDispatcher.setClusterId(clusterId);
+    writeChannel.start();

Review Comment:
   Thanks @ChenSammi  for the comment and review.
   Yes, swapping the order here solves the problem.
   Adding ReentrantReadWriteLock seems to be too strict, I will update it later.



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


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to