Browse Source

fmt

pull/7526/head
chrislu 4 weeks ago
parent
commit
3dd14ad2df
  1. 6
      other/java/client/src/main/java/seaweedfs/client/SeaweedOutputStream.java

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

@ -228,12 +228,14 @@ public class SeaweedOutputStream extends OutputStream {
}
int bufferPosBeforeFlush = buffer.position();
LOG.info("[DEBUG-2024] 🔒 close START: path={} position={} buffer.position()={} totalBytesWritten={} writeCalls={}",
LOG.info(
"[DEBUG-2024] 🔒 close START: path={} position={} buffer.position()={} totalBytesWritten={} writeCalls={}",
path, position, bufferPosBeforeFlush, totalBytesWritten, writeCallCount);
try {
flushInternal();
threadExecutor.shutdown();
LOG.info("[DEBUG-2024] ✅ close END: path={} finalPosition={} totalBytesWritten={} writeCalls={} (buffer had {} bytes)",
LOG.info(
"[DEBUG-2024] ✅ close END: path={} finalPosition={} totalBytesWritten={} writeCalls={} (buffer had {} bytes)",
path, position, totalBytesWritten, writeCallCount, bufferPosBeforeFlush);
} finally {
lastError = new IOException("Stream is closed!");

Loading…
Cancel
Save