JacksonYao287 commented on a change in pull request #2953:
URL: https://github.com/apache/ozone/pull/2953#discussion_r809717864
##########
File path:
hadoop-hdds/server-scm/src/main/java/org/apache/hadoop/hdds/scm/server/StorageContainerManager.java
##########
@@ -1028,6 +1029,7 @@ private static void
initializeSecurityIfNeeded(OzoneConfiguration conf,
*/
public static boolean scmInit(OzoneConfiguration conf,
String clusterId) throws IOException {
+ ExitUtils.disableSystemExit();
Review comment:
yes, it is . when initiating scm , scm ratis server will be created and
then wait for the leader is elected, and then scm ratis server will be closed,
which will close statemachine. since `statemanchine#close` will terminate scm
process from this patch, i think we can use `disableSystemExit` to avoid this
termination, so that scm can finish this initialization completely.
--
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]