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

[jira] [Created] (HADOOP-19574) Restore Subject propagation semantics for Java 22+

Istvan Toth created HADOOP-19574:
------------------------------------

             Summary: Restore Subject propagation semantics for Java 22+
                 Key: HADOOP-19574
                 URL: https://issues.apache.org/jira/browse/HADOOP-19574
             Project: Hadoop Common
          Issue Type: Bug
            Reporter: Istvan Toth
            Assignee: Istvan Toth


Java 22 breaks Subject propagation for new Threads (when SecurityManager is not enabled).

Previously, the Subject set by Subject.doAs() / Subject.callAs() automaatically propagated to any new Threads created  (via new Thread(), not Executors).

With JDK22, this is no longer the case, new Threads do NOT inherit the Subject.

As Hadoop heavily relies on the original behavior, we somehow need to solve this problem.



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

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