Browse Source

Update SeaweedOutputStream.java

pull/7526/head
chrislu 1 week ago
parent
commit
a8491ecd3f
  1. 5
      other/java/client/src/main/java/seaweedfs/client/SeaweedOutputStream.java

5
other/java/client/src/main/java/seaweedfs/client/SeaweedOutputStream.java

@ -257,11 +257,12 @@ public class SeaweedOutputStream extends OutputStream {
StringBuilder chunkInfo = new StringBuilder(); StringBuilder chunkInfo = new StringBuilder();
for (int i = 0; i < entry.getChunksCount(); i++) { for (int i = 0; i < entry.getChunksCount(); i++) {
FilerProto.FileChunk chunk = entry.getChunks(i); FilerProto.FileChunk chunk = entry.getChunks(i);
if (i > 0) chunkInfo.append(",");
if (i > 0)
chunkInfo.append(",");
chunkInfo.append(chunk.getFileId()); chunkInfo.append(chunk.getFileId());
} }
LOG.warn("=== PARQUET FILE WRITTEN TO EMPLOYEES: {} ({} bytes) CHUNKS: [{}] ===", LOG.warn("=== PARQUET FILE WRITTEN TO EMPLOYEES: {} ({} bytes) CHUNKS: [{}] ===",
filename, position, chunkInfo.toString());
filename, position, chunkInfo.toString());
} }
} finally { } finally {
lastError = new IOException("Stream is closed!"); lastError = new IOException("Stream is closed!");

Loading…
Cancel
Save