From 65d9aacceb12dddc5c5efc1c197194d1af47a3ef Mon Sep 17 00:00:00 2001 From: chrislu Date: Sat, 22 Nov 2025 23:51:10 -0800 Subject: [PATCH] debug: enable detailed logging for SeaweedFS client file operations Enable DEBUG logging for: - SeaweedRead: Shows fileSize calculations from chunks - SeaweedOutputStream: Shows write/flush/close operations - SeaweedInputStream: Shows read operations and content length This will reveal: 1. What file size is calculated from Entry chunks metadata 2. What actual chunk sizes are written 3. If there's a mismatch between metadata and actual data 4. Whether the '78 bytes' missing is consistent pattern Looking for clues about the EOF exception root cause. --- test/java/spark/src/test/resources/log4j.properties | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/java/spark/src/test/resources/log4j.properties b/test/java/spark/src/test/resources/log4j.properties index d74e3fa39..8944c5d6c 100644 --- a/test/java/spark/src/test/resources/log4j.properties +++ b/test/java/spark/src/test/resources/log4j.properties @@ -11,6 +11,10 @@ log4j.appender.console.layout.ConversionPattern=%d{yy/MM/dd HH:mm:ss} %p %c{1}: log4j.logger.org.apache.spark=WARN log4j.logger.org.apache.hadoop=WARN log4j.logger.seaweed=INFO +# Enable DEBUG for SeaweedFS client to see file size calculations +log4j.logger.seaweedfs.client.SeaweedRead=DEBUG +log4j.logger.seaweedfs.client.SeaweedOutputStream=DEBUG +log4j.logger.seaweedfs.client.SeaweedInputStream=DEBUG # Suppress Parquet verbose DEBUG logging log4j.logger.org.apache.parquet=ERROR