aryangupta1998 commented on code in PR #8081: URL: https://github.com/apache/ozone/pull/8081#discussion_r2001655808
########## 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: > what if a follower transition into leader? Will that scenario be covered? No, during restart it will see which is leader and initializeEdekCache(conf) will be executed on that node! -- 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