You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@polaris.apache.org by "flyrain (via GitHub)" <gi...@apache.org> on 2025/11/06 05:49:06 UTC
[I] Creating table failed with JDK 25 [polaris]
flyrain opened a new issue, #2991:
URL: https://github.com/apache/polaris/issues/2991
### Describe the bug
Client side error msg:
```
{
"error": {
"message": "getSubject is not supported",
"type": "UnsupportedOperationException",
"code": 406
}
}
```
Server side msg:
```
2025-11-05 18:55:24,961 INFO [org.apa.pol.ser.exc.IcebergExceptionMapper] [e259be44-c44b-477b-896a-2c4a628a3994_0000000000000000029,POLARIS] [,,,] (executor-thread-1) Handling runtimeException getSubject is not supported
2025-11-05 18:55:24,962 INFO [io.qua.htt.access-log] [e259be44-c44b-477b-896a-2c4a628a3994_0000000000000000029,POLARIS] [,,,] (executor-thread-1) 127.0.0.1 - root [05/Nov/2025:18:55:24 -0800] "POST /api/catalog/v1/grulab/namespaces/minionHQ/tables HTTP/1.1" 406 101
```
### To Reproduce
Start Polaris server with JDK25
### Actual Behavior
_No response_
### Expected Behavior
_No response_
### Additional context
Reason:
With Java 25, [[JEP 451](https://openjdk.org/jeps/451)](https://openjdk.org/jeps/451) fully disables the `SecurityManager` by default. The `Subject.getSubject()` call depends on an active security manager, so without explicitly opting back in using `-Djava.security.manager=allow`, it throws a “getSubject is not supported” warning. This issue did not occur in test because the configuration automatically injected that property (see `runtime/service/build.gradle.kts:197`), whereas the standalone server did not pass it through.
### System information
_No response_
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@polaris.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Creating table failed with JDK 25 [polaris]
Posted by "snazy (via GitHub)" <gi...@apache.org>.
snazy commented on issue #2991:
URL: https://github.com/apache/polaris/issues/2991#issuecomment-3495301391
This is rather something to fix in these upstream project:
* Hadoop
* Iceberg
* Spark
It's BTW a well-known and well-documented issue (for example [reported to Hadoop here](https://issues.apache.org/jira/browse/HADOOP-19212) in June last year). It is also not only the `SecurityManager`, see the linked Hadoop-Jira.
Polaris is just a _consumer_ of these dependencies, there is nothing that _we_ could fix, except being _very_ careful about the dependencies being added to Polaris. That's what I mentioned a few times before wrt Hadoop dependencies.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@polaris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Creating table failed with JDK 25 [polaris]
Posted by "flyrain (via GitHub)" <gi...@apache.org>.
flyrain commented on issue #2991:
URL: https://github.com/apache/polaris/issues/2991#issuecomment-3498642814
Thanks a lot for sharing the context, @snazy! Is this only triggered by a Hadoop class `org.apache.hadoop.security.UserGroupInformation`? I didn't find the stack trace.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@polaris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Creating table failed with JDK 25 [polaris]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #2991:
URL: https://github.com/apache/polaris/issues/2991#issuecomment-3937940534
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment if you think it's still relevant.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@polaris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Creating table failed with JDK 25 [polaris]
Posted by "snazy (via GitHub)" <gi...@apache.org>.
snazy commented on issue #2991:
URL: https://github.com/apache/polaris/issues/2991#issuecomment-3495312093
Also, explicitly allowing the `SecurityManager` is documented to be a Java startup error.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@polaris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org