This is an automated email from the ASF dual-hosted git repository.
the-other-tim-brown pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-xtable.git
The following commit(s) were added to refs/heads/main by this push:
new 0a0528b8 [909] Run the tests in UTC (#910)
0a0528b8 is described below
commit 0a0528b8f53c04dbd17558a0e447abab27790a0b
Author: Sylwester Lachiewicz <[email protected]>
AuthorDate: Tue Aug 25 16:29:23 2026 +0200
[909] Run the tests in UTC (#910)
Hudi stamps its timeline in UTC, so on a JVM in any other zone the
compaction planner reads the table's own delta commits as not yet
completed, drops every log file from the plan and hands back an empty
Option that TestAbstractHudiTable.onlyScheduleCompaction calls get() on.
CI runs UTC and never saw it.
---
pom.xml | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index 80a73f6b..d585f44f 100644
--- a/pom.xml
+++ b/pom.xml
@@ -756,6 +756,9 @@
<skip>${skipUTs}</skip>
<redirectTestOutputToFile>true</redirectTestOutputToFile>
<trimStackTrace>false</trimStackTrace>
+ <!-- Hudi stamps its timeline in UTC, so a JVM on any
other zone reads its own
+ commits as not yet completed. Pin the tests to UTC.
-->
+ <argLine>-Duser.timezone=UTC</argLine>
<forkedProcessExitTimeoutInSeconds>120</forkedProcessExitTimeoutInSeconds>
</configuration>
</plugin>
@@ -776,7 +779,7 @@
<reuseForks>false</reuseForks>
<forkCount>6</forkCount>
<trimStackTrace>false</trimStackTrace>
- <argLine>-Xmx1500m</argLine>
+ <argLine>-Xmx1500m -Duser.timezone=UTC</argLine>
<forkedProcessExitTimeoutInSeconds>120</forkedProcessExitTimeoutInSeconds>
</configuration>
</plugin>