Skip to content

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 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 v9.0.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants