This is an automated email from the ASF dual-hosted git repository.
jonvex pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/hudi.git
The following commit(s) were added to refs/heads/master by this push:
new 245ef0c2085 [MINOR] Add JVM flags for tests to avoid flakiness (#13474)
245ef0c2085 is described below
commit 245ef0c20857ce2caaae761e49238f8b08ee3094
Author: Tim Brown <[email protected]>
AuthorDate: Mon Jun 23 14:43:00 2025 -0500
[MINOR] Add JVM flags for tests to avoid flakiness (#13474)
---
.../org/apache/hudi/io/storage/row/TestHoodieRowCreateHandle.java | 7 ++-----
pom.xml | 4 ++--
2 files changed, 4 insertions(+), 7 deletions(-)
diff --git
a/hudi-spark-datasource/hudi-spark/src/test/java/org/apache/hudi/io/storage/row/TestHoodieRowCreateHandle.java
b/hudi-spark-datasource/hudi-spark/src/test/java/org/apache/hudi/io/storage/row/TestHoodieRowCreateHandle.java
index b121488b21e..db28241430b 100644
---
a/hudi-spark-datasource/hudi-spark/src/test/java/org/apache/hudi/io/storage/row/TestHoodieRowCreateHandle.java
+++
b/hudi-spark-datasource/hudi-spark/src/test/java/org/apache/hudi/io/storage/row/TestHoodieRowCreateHandle.java
@@ -170,11 +170,8 @@ public class TestHoodieRowCreateHandle extends
HoodieSparkClientTestHarness {
? "class java.lang.String cannot be cast to class
org.apache.spark.unsafe.types.UTF8String"
: "java.lang.String cannot be cast to
org.apache.spark.unsafe.types.UTF8String";
- try {
-
assertTrue(writeStatus.getGlobalError().getMessage().contains(expectedError));
- } catch (Throwable e) {
- fail("Expected error to contain: " + expectedError + ", the actual error
message: " + writeStatus.getGlobalError().getMessage());
- }
+ assertTrue(writeStatus.getGlobalError() instanceof ClassCastException);
+
assertTrue(writeStatus.getGlobalError().getMessage().contains(expectedError),
"Expected error to contain: " + expectedError + ", the actual error message: "
+ writeStatus.getGlobalError());
assertEquals(writeStatus.getFileId(), fileId);
assertEquals(writeStatus.getPartitionPath(), partitionPath);
diff --git a/pom.xml b/pom.xml
index 3069e076115..f0790c63cf3 100644
--- a/pom.xml
+++ b/pom.xml
@@ -201,7 +201,7 @@
<spark.bundle.hive.shade.prefix/>
<utilities.bundle.hive.scope>provided</utilities.bundle.hive.scope>
<utilities.bundle.hive.shade.prefix/>
- <argLine>-Xmx2g -Xms128m</argLine>
+ <argLine>-Xmx2g -Xms128m -XX:-OmitStackTraceInFastThrow</argLine>
<jacoco.version>0.8.12</jacoco.version>
<presto.bundle.bootstrap.scope>compile</presto.bundle.bootstrap.scope>
<presto.bundle.bootstrap.shade.prefix>org.apache.hudi.</presto.bundle.bootstrap.shade.prefix>
@@ -2670,7 +2670,7 @@
<profile>
<id>java17</id>
<properties>
- <argLine>-Xmx2g --add-opens=java.base/java.lang=ALL-UNNAMED
--add-opens=java.base/java.lang.invoke=ALL-UNNAMED
--add-opens=java.base/java.lang.reflect=ALL-UNNAMED
--add-opens=java.base/java.io=ALL-UNNAMED
--add-opens=java.base/java.net=ALL-UNNAMED
--add-opens=java.base/java.nio=ALL-UNNAMED
--add-opens=java.base/java.util=ALL-UNNAMED
--add-opens=java.base/java.util.concurrent=ALL-UNNAMED
--add-opens=java.base/java.util.concurrent.atomic=ALL-UNNAMED
--add-opens=java.base/sun.nio.ch [...]
+ <argLine>-Xmx2g --add-opens=java.base/java.lang=ALL-UNNAMED
--add-opens=java.base/java.lang.invoke=ALL-UNNAMED
--add-opens=java.base/java.lang.reflect=ALL-UNNAMED
--add-opens=java.base/java.io=ALL-UNNAMED
--add-opens=java.base/java.net=ALL-UNNAMED
--add-opens=java.base/java.nio=ALL-UNNAMED
--add-opens=java.base/java.util=ALL-UNNAMED
--add-opens=java.base/java.util.concurrent=ALL-UNNAMED
--add-opens=java.base/java.util.concurrent.atomic=ALL-UNNAMED
--add-opens=java.base/sun.nio.ch [...]
</properties>
<activation>
<property>