Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Hdfs patcher to replace deprecated Subject method #119779

Merged
merged 2 commits into from
Jan 9, 2025

Conversation

ldematte
Copy link
Contributor

@ldematte ldematte commented Jan 8, 2025

This PR finds calls to a (long deprecated) Java API Subject#getSubject with calls to Subject#current.

Subject#getSubject is problematic as it checks if the SM is allowed ("-Djava.security.manager=allow"), and it fails if it isn't; also, as expected, Subject#getSubject is effectively removed from JDK 24 (throws UnsupportedOperationException).

Hadoop calls that API.

It seems Hadoop is making the change to replace Subject#getSubject (see https://issues.apache.org/jira/browse/HADOOP-19212 and apache/hadoop#7081); however we don't know when this will happen.

@ldematte ldematte added :Delivery/Build Build or test infrastructure :Core/Infra/Core Core issues without another label v9.0.0 test-entitlements Trigger CI checks using security manager replacement labels Jan 8, 2025
@elasticsearchmachine elasticsearchmachine added Team:Core/Infra Meta label for core/infra team Team:Delivery Meta label for Delivery team labels Jan 8, 2025
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-core-infra (Team:Core/Infra)

@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-delivery (Team:Delivery)

Copy link
Member

@rjernst rjernst left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ldematte ldematte merged commit 169cb44 into elastic:main Jan 9, 2025
21 checks passed
@ldematte ldematte deleted the hdfs-get-subject-patcher branch January 9, 2025 08:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Core/Infra/Core Core issues without another label :Delivery/Build Build or test infrastructure >non-issue Team:Core/Infra Meta label for core/infra team Team:Delivery Meta label for Delivery team test-entitlements Trigger CI checks using security manager replacement v9.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants