This is an automated email from the ASF dual-hosted git repository.

yuqi4733 pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/gravitino.git


The following commit(s) were added to refs/heads/main by this push:
     new 4082da4f7f [#10349] fix(trino-connector): Remove unrecognized JVM 
option GCLockerRetryAllocationCount for Trino 478+ (#10351)
4082da4f7f is described below

commit 4082da4f7ff475ab7b75b810d5f91f3b8809ea4d
Author: Yuhui <[email protected]>
AuthorDate: Wed Mar 11 07:50:48 2026 +0800

    [#10349] fix(trino-connector): Remove unrecognized JVM option 
GCLockerRetryAllocationCount for Trino 478+ (#10351)
    
    ### What changes were proposed in this pull request?
    
    Remove the `-XX:GCLockerRetryAllocationCount=32` and related JVM options
    from
    `dev/docker/trino/conf/jvm.config`, as this option was removed in newer
    JDK versions.
    
    ### Why are the changes needed?
    
    Trino 478+ fails to start with the following error:
    
    ```
    Unrecognized VM option 'GCLockerRetryAllocationCount=32'
    Error: Could not create the Java Virtual Machine.
    ```
    
    Fix: #10349
    
    ### Does this PR introduce _any_ user-facing change?
    
    No.
    
    ### How was this patch tested?
    
    Manually verified Trino starts successfully after removing the
    unrecognized JVM option.
---
 dev/docker/trino/conf/jvm.config | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/dev/docker/trino/conf/jvm.config b/dev/docker/trino/conf/jvm.config
index 57b0e104dc..9c290d8b1c 100644
--- a/dev/docker/trino/conf/jvm.config
+++ b/dev/docker/trino/conf/jvm.config
@@ -28,8 +28,5 @@
 -XX:PerBytecodeRecompilationCutoff=10000
 -Djdk.attach.allowAttachSelf=true
 -Djdk.nio.maxCachedBufferSize=2000000
-# Reduce starvation of threads by GClocker, recommend to set about the number 
of cpu cores (JDK-8192647)
--XX:+UnlockDiagnosticVMOptions
--XX:GCLockerRetryAllocationCount=32
 -DHADOOP_USER_NAME=hive
 -Dlog4j.configurationFile=/etc/trino/log4j2.properties
\ No newline at end of file

Reply via email to