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