[
https://issues.apache.org/jira/browse/HDFS-17767?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17948436#comment-17948436
]
ASF GitHub Bot commented on HDFS-17767:
---------------------------------------
stoty commented on code in PR #7566:
URL: https://github.com/apache/hadoop/pull/7566#discussion_r2068464042
##########
hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/TestDatanodeRegistration.java:
##########
@@ -79,8 +80,12 @@ public void checkConnect(String host, int port) {
@Test
public void testDNSLookups() throws Exception {
MonitorDNS sm = new MonitorDNS();
- System.setSecurityManager(sm);
-
+ try {
+ System.setSecurityManager(sm);
+ } catch (UnsupportedOperationException e) {
+ assumeTrue("Test is skipped because SecurityManager cannot be set (JEP
411)", false);
Review Comment:
Neither did I.
> Skip tests that depend on custom SecurityManager when Java doesn't support it
> -----------------------------------------------------------------------------
>
> Key: HDFS-17767
> URL: https://issues.apache.org/jira/browse/HDFS-17767
> Project: Hadoop HDFS
> Issue Type: Improvement
> Components: test
> Reporter: Istvan Toth
> Assignee: Istvan Toth
> Priority: Major
> Labels: pull-request-available
>
> TestDFSShell and TestDatanodeRegistration always fail because SecurityManager
> cannot be set on recent Java versions.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]