jojochuang commented on code in PR #8081:
URL: https://github.com/apache/ozone/pull/8081#discussion_r2004468772


##########
hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/OzoneManager.java:
##########
@@ -644,6 +655,9 @@ private OzoneManager(OzoneConfiguration conf, StartupOption 
startupOption)
       kmsProvider = null;
       LOG.error("Fail to create Key Provider");
     }
+    if (isLeaderReady() && kmsProvider != null) {

Review Comment:
   But that's after a restart. A follower can transition into leader while it's 
still up.
   Is there a callback from Ratis when a role becomes a leader? There are 
certain things we want leader to take on as soon as it becomes a leader.



-- 
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: issues-unsubscr...@ozone.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@ozone.apache.org
For additional commands, e-mail: issues-h...@ozone.apache.org

Reply via email to