From db7b3b9b59951c46c2216df775b93496289da433 Mon Sep 17 00:00:00 2001 From: Vova Kolmakov Date: Thu, 23 Jul 2026 14:13:00 +0700 Subject: [PATCH] [spark] Fix duplicated Hive metastore test port between two Spark ITCases SparkDataEvolutionITCase and SparkMultimodalITCase both hardcoded the Hive metastore port 9092. Both run in the same paimon-spark-ut surefire JVM, and TestHiveMetastore.stop() does not await the serve thread's termination, so the first class's socket can still be bound (or in TCP TIME_WAIT) when the second class calls start(9092). The result is an intermittent "java.net.BindException: Address already in use" that fails whichever class starts its metastore second, which is why CI flaked nondeterministically. Every other metastore test in the module already uses a unique fixed port (9083, 9087, 9091, ...); this was the lone duplicate. Give SparkDataEvolutionITCase port 9094, which is referenced nowhere else in the repository, restoring the module's one-fixed-port-per-class convention. SparkMultimodalITCase keeps 9092, now unique. Co-Authored-By: Claude Opus 4.8 (1M context) --- .../java/org/apache/paimon/spark/SparkDataEvolutionITCase.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paimon-spark/paimon-spark-ut/src/test/java/org/apache/paimon/spark/SparkDataEvolutionITCase.java b/paimon-spark/paimon-spark-ut/src/test/java/org/apache/paimon/spark/SparkDataEvolutionITCase.java index 856b0cc57efb..a8af1c10e6e3 100644 --- a/paimon-spark/paimon-spark-ut/src/test/java/org/apache/paimon/spark/SparkDataEvolutionITCase.java +++ b/paimon-spark/paimon-spark-ut/src/test/java/org/apache/paimon/spark/SparkDataEvolutionITCase.java @@ -37,7 +37,7 @@ public class SparkDataEvolutionITCase { private static TestHiveMetastore testHiveMetastore; - private static final int PORT = 9092; + private static final int PORT = 9094; @BeforeAll public static void startMetastore() {