[
https://issues.apache.org/jira/browse/CALCITE-6590?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Julian Hyde updated CALCITE-6590:
---------------------------------
Description:
Remove use of Java SecurityManager in Avatica.
Running Avatica on JDK 23 (or JRE 23) we get the following runtime errors:
{noformat}
Caused by: java.lang.UnsupportedOperationException: getSubject is supported
only if a security manager is allowed at
java.base/javax.security.auth.Subject.getSubject(Subject.java:347) at
org.apache.calcite.avatica.server.SubjectPreservingPrivilegedThreadFactory.newThread(SubjectPreservingPrivilegedThreadFactory.java:43)
{noformat}
We were warned - the {{getSubject}} method has been deprecated since JDK 18.
The deprecation did not cause a build failure, due to CALCITE-5136.
HADOOP-19212 is an issue with the same underlying cause.
The message "getSubject is supported only if a security manager is allowed"
implies that another solution would be to enable a security manager (including
during tests, and when Avatica is used in Calcite's tests). Should we consider
that?
was:
Remove use of Java SecurityManager in Avatica.
Running Avatica on JDK 23 (or JRE 23) we get the following runtime errors:
{noformat}
Caused by: java.lang.UnsupportedOperationException: getSubject is supported
only if a security manager is allowed at
java.base/javax.security.auth.Subject.getSubject(Subject.java:347) at
org.apache.calcite.avatica.server.SubjectPreservingPrivilegedThreadFactory.newThread(SubjectPreservingPrivilegedThreadFactory.java:43)
{noformat}
We were warned - methods {{getSubject}} have been deprecated since JDK 18.
The message "getSubject is supported only if a security manager is allowed"
implies that another solution would be to enable a security manager (including
during tests, and when Avatica is used in Calcite's tests). Should we consider
that?
> Remove use of Java SecurityManager in Avatica
> ---------------------------------------------
>
> Key: CALCITE-6590
> URL: https://issues.apache.org/jira/browse/CALCITE-6590
> Project: Calcite
> Issue Type: Bug
> Reporter: Julian Hyde
> Priority: Major
> Fix For: 1.26.0
>
>
> Remove use of Java SecurityManager in Avatica.
> Running Avatica on JDK 23 (or JRE 23) we get the following runtime errors:
> {noformat}
> Caused by: java.lang.UnsupportedOperationException: getSubject is supported
> only if a security manager is allowed at
> java.base/javax.security.auth.Subject.getSubject(Subject.java:347) at
> org.apache.calcite.avatica.server.SubjectPreservingPrivilegedThreadFactory.newThread(SubjectPreservingPrivilegedThreadFactory.java:43)
> {noformat}
> We were warned - the {{getSubject}} method has been deprecated since JDK 18.
> The deprecation did not cause a build failure, due to CALCITE-5136.
> HADOOP-19212 is an issue with the same underlying cause.
> The message "getSubject is supported only if a security manager is allowed"
> implies that another solution would be to enable a security manager
> (including during tests, and when Avatica is used in Calcite's tests). Should
> we consider that?
--
This message was sent by Atlassian Jira
(v8.20.10#820010)