[jira] [Commented] (SOLR-17641) Support Java 24

2025-07-01 Thread Jira


[ 
https://issues.apache.org/jira/browse/SOLR-17641?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17987296#comment-17987296
 ] 

Jan Høydahl commented on SOLR-17641:


Today, if you try to run Solr main on JRE24, startup fails to start, with this 
output:

{code:bash}
$ bin/solr start
Waiting up to 180 seconds to see Solr running on port 8983 [|]  
{code}

Solr never starts, the 180 s times out and if you look into solr.log  you'll 
see this:

{code:bash}
OpenJDK 64-Bit Server VM warning: -XX:+UseLargePages not supported in this VM
WARNING: Using incubator modules: jdk.incubator.vector
Error occurred during initialization of VM
java.lang.Error: A command line option has attempted to allow or enable the 
Security Manager. Enabling a Security Manager is not supported.
at java.lang.System.initPhase3([email protected]/System.java:1947)
{code}

However, if you start Solr with JSM explicitly disabled, it starts as normal

{code:bash}
SOLR_SECURITY_MANAGER_ENABLED=false bin/solr start
...
2025-07-01 22:22:41.227 INFO  (main) [c: s: r: x: t:] 
o.a.s.s.CoreContainerProvider  ___  _   Welcome to Apache Solr™ version 
10.0.0-SNAPSHOT 535c6614a1a43907af823a5afbf964e7826c8b25 [snapshot build, 
details omitted]
{code}

So the minimal change we can do to "Support Java 24" is to have our start 
script disable JSM when detecting Java 24+. This is a three-line change in 
bin/solr, and will solve this JIRA's intention. And give users who want/need 
JSM support for it with Java 21 even in Solr 10.

It will also give the commnity some time to decide on options for SIP-24. We 
can then remove the entire JSM support at our time of choosing.

> Support Java 24
> ---
>
> Key: SOLR-17641
> URL: https://issues.apache.org/jira/browse/SOLR-17641
> Project: Solr
>  Issue Type: Bug
>  Components: SolrCLI, Tests
>Reporter: Houston Putman
>Assignee: Eric Pugh
>Priority: Critical
>  Labels: pull-request-available
>  Time Spent: 3h 10m
>  Remaining Estimate: 0h
>
> The main thing here is to disable the Security Manager for Java 24+, both for 
> the CLI and testing.
> Reference: https://github.com/apache/lucene/issues/14184



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

-
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]



[jira] [Commented] (SOLR-17641) Support Java 24

2025-05-22 Thread Jira


[ 
https://issues.apache.org/jira/browse/SOLR-17641?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17953345#comment-17953345
 ] 

Jan Høydahl commented on SOLR-17641:


This issue [https://github.com/opensearch-project/OpenSearch/issues/17181] 
contains even more details from their effort. Basically they looked into 
systemd features as well as a custom JavaAgent to intercept file and network 
calls.

> Support Java 24
> ---
>
> Key: SOLR-17641
> URL: https://issues.apache.org/jira/browse/SOLR-17641
> Project: Solr
>  Issue Type: Bug
>  Components: SolrCLI, Tests
>Reporter: Houston Putman
>Priority: Critical
>  Labels: pull-request-available
>  Time Spent: 2h 10m
>  Remaining Estimate: 0h
>
> The main thing here is to disable the Security Manager for Java 24+, both for 
> the CLI and testing.
> Reference: https://github.com/apache/lucene/issues/14184



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

-
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]



[jira] [Commented] (SOLR-17641) Support Java 24

2025-02-03 Thread Gus Heck (Jira)


[ 
https://issues.apache.org/jira/browse/SOLR-17641?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17923508#comment-17923508
 ] 

Gus Heck commented on SOLR-17641:
-

Opensearch folks had a large discussion about the disappearance of the security 
manager... https://github.com/opensearch-project/OpenSearch/issues/1687

> Support Java 24
> ---
>
> Key: SOLR-17641
> URL: https://issues.apache.org/jira/browse/SOLR-17641
> Project: Solr
>  Issue Type: Bug
>  Components: SolrCLI, Tests
>Reporter: Houston Putman
>Priority: Critical
>  Labels: pull-request-available
>  Time Spent: 40m
>  Remaining Estimate: 0h
>
> The main thing here is to disable the Security Manager for Java 24+, both for 
> the CLI and testing.
> Reference: https://github.com/apache/lucene/issues/14184



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

-
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]



[jira] [Commented] (SOLR-17641) Support Java 24

2025-02-03 Thread Houston Putman (Jira)


[ 
https://issues.apache.org/jira/browse/SOLR-17641?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17923453#comment-17923453
 ] 

Houston Putman commented on SOLR-17641:
---

I will raise it, but it's not really a decision. This is a must-do, the 
security manager doesn't exist in Java 24. There may be additional things we 
need to do in order to secure Solr to the standard we want.

> Support Java 24
> ---
>
> Key: SOLR-17641
> URL: https://issues.apache.org/jira/browse/SOLR-17641
> Project: Solr
>  Issue Type: Bug
>  Components: SolrCLI, Tests
>Reporter: Houston Putman
>Priority: Critical
>  Labels: pull-request-available
>  Time Spent: 0.5h
>  Remaining Estimate: 0h
>
> The main thing here is to disable the Security Manager for Java 24+, both for 
> the CLI and testing.
> Reference: https://github.com/apache/lucene/issues/14184



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

-
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]



[jira] [Commented] (SOLR-17641) Support Java 24

2025-02-03 Thread David Smiley (Jira)


[ 
https://issues.apache.org/jira/browse/SOLR-17641?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17923445#comment-17923445
 ] 

David Smiley commented on SOLR-17641:
-

Please raise in dev list for visibility of a key decision like this

> Support Java 24
> ---
>
> Key: SOLR-17641
> URL: https://issues.apache.org/jira/browse/SOLR-17641
> Project: Solr
>  Issue Type: Bug
>  Components: SolrCLI, Tests
>Reporter: Houston Putman
>Priority: Critical
>  Labels: pull-request-available
>  Time Spent: 0.5h
>  Remaining Estimate: 0h
>
> The main thing here is to disable the Security Manager for Java 24+, both for 
> the CLI and testing.
> Reference: https://github.com/apache/lucene/issues/14184



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

-
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]