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

voonhous pushed a commit to tag rfc-105-pre-cleanup
in repository https://gitbox.apache.org/repos/asf/hudi.git

commit b714a5b74b9e7a0d9945c3fe0dffe918001e53ea
Author: voon <[email protected]>
AuthorDate: Wed May 27 00:15:56 2026 +0800

    fix(trino): add jdk.incubator.vector to surefire argLine
    
    Trino's BlockEncodingSimdSupport invokes the JDK Vector API
    (jdk/incubator/vector/VectorShape) for SIMD-accelerated block encoding.
    Vector is still an incubator module in JDK 25 and must be added to the
    test JVM via --add-modules.
    
    Override the argLine property at the plugin level so surefire's
    @{argLine} expansion picks up --add-modules jdk.incubator.vector
    alongside the parent's existing -Xmx / -Xms / -XX flags. Without this
    TestingTrinoServer fails to wire up Guice during coordinator module
    setup with NoClassDefFoundError.
---
 hudi-trino-plugin/pom.xml | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/hudi-trino-plugin/pom.xml b/hudi-trino-plugin/pom.xml
index 3659bc9a7058..8581146761b0 100644
--- a/hudi-trino-plugin/pom.xml
+++ b/hudi-trino-plugin/pom.xml
@@ -41,6 +41,9 @@
         <hudi.trino.java.version>25</hudi.trino.java.version>
         <main.basedir>${project.parent.basedir}</main.basedir>
         <checkstyle.skip>true</checkstyle.skip>
+        <!-- Trino's BlockEncodingSimdSupport uses jdk.incubator.vector for 
SIMD; the
+             incubator module must be added explicitly on the test JVM command 
line. -->
+        <argLine>-Xmx4g -Xms128m -XX:-OmitStackTraceInFastThrow --add-modules 
jdk.incubator.vector</argLine>
     </properties>
 
     <dependencyManagement>

Reply via email to