You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by "Istvan Toth (Jira)" <ji...@apache.org> on 2025/11/18 07:12:00 UTC

[jira] [Updated] (HADOOP-19744) Reduce WARN log messages in SubjectUtil.checkThreadInheritsSubject

     [ https://issues.apache.org/jira/browse/HADOOP-19744?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Istvan Toth updated HADOOP-19744:
---------------------------------
    Summary: Reduce WARN log messages in SubjectUtil.checkThreadInheritsSubject  (was: Reduce WARN log messaes in SubjectUtil.checkThreadInheritsSubject)

> Reduce WARN log messages in SubjectUtil.checkThreadInheritsSubject
> ------------------------------------------------------------------
>
>                 Key: HADOOP-19744
>                 URL: https://issues.apache.org/jira/browse/HADOOP-19744
>             Project: Hadoop Common
>          Issue Type: Bug
>            Reporter: Istvan Toth
>            Assignee: Istvan Toth
>            Priority: Major
>
> While the code works fine, it causes Hadoop to emit warnings 
> {noformat}
> WARNING: A terminally deprecated method in java.lang.System has been called
> WARNING: System::setSecurityManager has been called by org.apache.hadoop.security.authentication.util.SubjectUtil (file:/Users/stevel/.m2/repository/org/apache/hadoop/hadoop-auth/3.5.0-SNAPSHOT/hadoop-auth-3.5.0-SNAPSHOT.jar)
> WARNING: Please consider reporting this to the maintainers of org.apache.hadoop.security.authentication.util.SubjectUtil
> {noformat}
> The SecurityManager check is only really needed for Java 22-23. 
> We  can shortcut the check by returning true for JDK21 and earlier and false for JDK24 and later, and only check and emit warnings  for 22-23, which are EOL anyway.
> We can also try to duplicate the logic the JVM uses to determine whether SecurityManager is enabled without explicitly calling it, but that would be less robust than the current check.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-issues-help@hadoop.apache.org