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

Enable Java Vector module for Java 22 in launcher.py #1144

Merged
merged 1 commit into from
May 21, 2024

Conversation

raunaqmorarka
Copy link
Contributor

No description provided.

@electrum
Copy link
Member

This seems too specific. Also, this will break on older JVMs, or newer JVMs (after Vector is final). Let me think about this more. We have a seemingly related problem of other required options like --add-opens.

@raunaqmorarka
Copy link
Contributor Author

This seems too specific. Also, this will break on older JVMs, or newer JVMs (after Vector is final). Let me think about this more. We have a seemingly related problem of other required options like --add-opens.

I have refactored my Trino PR so that the Vector module is no longer required. We will automatically fall back to existing code paths if Vector module isn't found. So now it's just a matter of finding a convenient way to add --add-modules=jdk.incubator.vector. We could just add it to all the jvm configs in the codebase and add it to our jvm configs documentation and leave it at that. The other option is to add it to core/docker/bin/run-trino which will cover our main mode of deployment.

@findepi
Copy link
Contributor

findepi commented May 7, 2024

We could just add it to all the jvm configs in the codebase and add it to our jvm configs documentation and leave it at that. The other option is to add it to core/docker/bin/run-trino which will cover our main mode of deployment.

I like this direction.

@raunaqmorarka
Copy link
Contributor Author

We could just add it to all the jvm configs in the codebase and add it to our jvm configs documentation and leave it at that. The other option is to add it to core/docker/bin/run-trino which will cover our main mode of deployment.

I like this direction.

We had an offline discussion about this, the consensus was to change launcher.py to add --add-modules=jdk.incubator.vector if we detect the JVM to be version 22 and to update this version check with each subsequent new Java version until it is no longer needed.

@raunaqmorarka raunaqmorarka changed the title Enable Java Vector module in launcher.py Enable Java Vector module for Java 22 in launcher.py May 13, 2024
@electrum electrum merged commit 46bf4ac into airlift:master May 21, 2024
3 checks passed
@electrum
Copy link
Member

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants