|
|
|
@ -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!"); |
|
|
|
|