stoty commented on code in PR #7567: URL: https://github.com/apache/hadoop/pull/7567#discussion_r2068315273
########## hadoop-tools/hadoop-distcp/src/test/java/org/apache/hadoop/tools/TestExternalCall.java: ########## @@ -65,8 +66,12 @@ private static Configuration getConf() { @BeforeEach public void setup() { - securityManager = System.getSecurityManager(); - System.setSecurityManager(new NoExitSecurityManager()); + try { + securityManager = System.getSecurityManager(); + System.setSecurityManager(new NoExitSecurityManager()); + } catch (UnsupportedOperationException e) { + assumeTrue(false, "Test is skipped because SecurityManager cannot be set (JEP 411)"); Review Comment: Thanks for the review. I've rewritten the test (and DistCp) to use the existing ExitUtil class, @cnauroth . -- 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: common-issues-unsubscr...@hadoop.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: common-issues-unsubscr...@hadoop.apache.org For additional commands, e-mail: common-issues-h...@hadoop.apache.org