From 966b053ed35fbd69e8dc7f03ff4fa1e21ee74597 Mon Sep 17 00:00:00 2001 From: chrislu Date: Sun, 23 Nov 2025 10:17:12 -0800 Subject: [PATCH] fix: use SNAPSHOT version to force Maven to use locally built JARs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ROOT CAUSE: Maven was downloading seaweedfs-client:3.80 from Maven Central instead of using the locally built version in CI! Changes: - Changed all versions from 3.80 to 3.80.1-SNAPSHOT - other/java/client/pom.xml: 3.80 → 3.80.1-SNAPSHOT - other/java/hdfs2/pom.xml: property 3.80 → 3.80.1-SNAPSHOT - other/java/hdfs3/pom.xml: property 3.80 → 3.80.1-SNAPSHOT - test/java/spark/pom.xml: property 3.80 → 3.80.1-SNAPSHOT Maven behavior: - Release versions (3.80): Downloaded from remote repos if available - SNAPSHOT versions: Prefer local builds, can be updated This ensures the CI uses the locally built JARs with our debug logging! Also added unique [DEBUG-2024] markers to verify in logs. --- other/java/client/pom.xml | 2 +- .../src/main/java/seaweedfs/client/SeaweedOutputStream.java | 4 ++-- .../client/src/main/java/seaweedfs/client/SeaweedWrite.java | 2 +- other/java/hdfs2/pom.xml | 2 +- other/java/hdfs3/pom.xml | 2 +- test/java/spark/pom.xml | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/other/java/client/pom.xml b/other/java/client/pom.xml index 7d97a78ea..1989b9b05 100644 --- a/other/java/client/pom.xml +++ b/other/java/client/pom.xml @@ -5,7 +5,7 @@ com.seaweedfs seaweedfs-client - 3.80 + 3.80.1-SNAPSHOT SeaweedFS Java Client A java client for SeaweedFS. diff --git a/other/java/client/src/main/java/seaweedfs/client/SeaweedOutputStream.java b/other/java/client/src/main/java/seaweedfs/client/SeaweedOutputStream.java index 0779a1343..0fd528362 100644 --- a/other/java/client/src/main/java/seaweedfs/client/SeaweedOutputStream.java +++ b/other/java/client/src/main/java/seaweedfs/client/SeaweedOutputStream.java @@ -191,7 +191,7 @@ public class SeaweedOutputStream extends OutputStream { return; } - LOG.info("close: path={} totalPosition={} buffer.position()={}", path, position, buffer.position()); + LOG.info("[DEBUG-2024] close: path={} totalPosition={} buffer.position()={}", path, position, buffer.position()); try { flushInternal(); threadExecutor.shutdown(); @@ -211,7 +211,7 @@ public class SeaweedOutputStream extends OutputStream { private synchronized void writeCurrentBufferToService() throws IOException { int bufferPos = buffer.position(); - LOG.info("writeCurrentBufferToService: path={} buffer.position()={} totalPosition={}", path, bufferPos, position); + LOG.info("[DEBUG-2024] writeCurrentBufferToService: path={} buffer.position()={} totalPosition={}", path, bufferPos, position); if (bufferPos == 0) { LOG.info(" → Skipping write, buffer is empty"); return; diff --git a/other/java/client/src/main/java/seaweedfs/client/SeaweedWrite.java b/other/java/client/src/main/java/seaweedfs/client/SeaweedWrite.java index d83245363..8037435fd 100644 --- a/other/java/client/src/main/java/seaweedfs/client/SeaweedWrite.java +++ b/other/java/client/src/main/java/seaweedfs/client/SeaweedWrite.java @@ -125,7 +125,7 @@ public class SeaweedWrite { String etag = multipartUpload(targetUrl, auth, bytes, bytesOffset, bytesLength, cipherKey); - LOG.info("✓ Wrote chunk to {} at offset {} size {} bytes, etag: {}", targetUrl, offset, bytesLength, etag); + LOG.info("[DEBUG-2024] ✓ Wrote chunk to {} at offset {} size {} bytes, etag: {}", targetUrl, offset, bytesLength, etag); return FilerProto.FileChunk.newBuilder() .setFileId(fileId) diff --git a/other/java/hdfs2/pom.xml b/other/java/hdfs2/pom.xml index 7b4c2507d..437a181a2 100644 --- a/other/java/hdfs2/pom.xml +++ b/other/java/hdfs2/pom.xml @@ -5,7 +5,7 @@ 4.0.0 - 3.80 + 3.80.1-SNAPSHOT 3.4.0 diff --git a/other/java/hdfs3/pom.xml b/other/java/hdfs3/pom.xml index 061d4d700..824db8264 100644 --- a/other/java/hdfs3/pom.xml +++ b/other/java/hdfs3/pom.xml @@ -5,7 +5,7 @@ 4.0.0 - 3.80 + 3.80.1-SNAPSHOT 3.4.0 diff --git a/test/java/spark/pom.xml b/test/java/spark/pom.xml index 1b0b16f9e..502aca581 100644 --- a/test/java/spark/pom.xml +++ b/test/java/spark/pom.xml @@ -20,7 +20,7 @@ 3.3.6 2.12 4.13.2 - 3.80 + 3.80.1-SNAPSHOT 2.15.3 4.1.125.Final