[ https://issues.apache.org/jira/browse/HADOOP-19486?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17938977#comment-17938977 ]
Gary D. Gregory commented on HADOOP-19486: ------------------------------------------ Hi All, would you please set expectations as to when we will be able to run on Java 24/25-ea without getting failures like: {noformat} [ERROR] org.apache.commons.vfs2.provider.hdfs.HdfsFileProviderTestCase$HdfsProviderTestSuite -- Time elapsed: 0.006 s <<< ERROR! java.lang.UnsupportedOperationException: getSubject is not supported at java.base/javax.security.auth.Subject.getSubject(Subject.java:277) at org.apache.hadoop.security.UserGroupInformation.getCurrentUser(UserGroupInformation.java:588) at org.apache.hadoop.hdfs.server.namenode.FSNamesystem.<init>(FSNamesystem.java:887) at org.apache.hadoop.hdfs.server.namenode.FSNamesystem.<init>(FSNamesystem.java:851) at org.apache.hadoop.hdfs.server.namenode.NameNode.format(NameNode.java:1396) at org.apache.hadoop.hdfs.server.namenode.NameNode.format(NameNode.java:495) at org.apache.hadoop.hdfs.DFSTestUtil.formatNameNode(DFSTestUtil.java:256) at org.apache.hadoop.hdfs.MiniDFSCluster.configureNameService(MiniDFSCluster.java:1158) at org.apache.hadoop.hdfs.MiniDFSCluster.createNameNodesAndSetConf(MiniDFSCluster.java:1042) at org.apache.hadoop.hdfs.MiniDFSCluster.initMiniDFSCluster(MiniDFSCluster.java:974) at org.apache.hadoop.hdfs.MiniDFSCluster.<init>(MiniDFSCluster.java:888) at org.apache.commons.vfs2.provider.hdfs.HdfsFileProviderTestCase$HdfsProviderTestSuite.setUp(HdfsFileProviderTestCase.java:113) at org.apache.commons.vfs2.AbstractTestSuite.lambda$run$0(AbstractTestSuite.java:234) at junit.framework.TestResult.runProtected(TestResult.java:142) at org.apache.commons.vfs2.AbstractTestSuite.run(AbstractTestSuite.java:239) {noformat} > Fully Support Java 23 and 24 > ---------------------------- > > Key: HADOOP-19486 > URL: https://issues.apache.org/jira/browse/HADOOP-19486 > Project: Hadoop Common > Issue Type: Improvement > Reporter: Istvan Toth > Assignee: Istvan Toth > Priority: Major > > Hadoop trunk today mostly supports JDK17, but doesn't work at all on JDK23. > (and conversely on JDK24 to be released in less than two weeks) > While there are many smaller issues, the major breaking change is the > SecurityManager removal (JEP411/486), and its many consequences. > The obvious change is that Subjec.doAs() and Subject.current() no longer work > by default, and the replacement APIs must be used. > The more insidius change is that when SecurityManager is disabled then JDK22+ > does not propapage the Subject to new Threads, which is something that Hadoop > absolutely relies on. -- This message was sent by Atlassian Jira (v8.20.10#820010) --------------------------------------------------------------------- To unsubscribe, e-mail: common-issues-unsubscr...@hadoop.apache.org For additional commands, e-mail: common-issues-h...@hadoop.apache.org