Browse Source

debug: add WARN logging to SeaweedOutputStream base constructor

CRITICAL: None of our higher-level logging is appearing!
- NO SeaweedFileSystemStore.createFile logs
- NO SeaweedHadoopOutputStream constructor logs
- NO FSDataOutputStream.getPos() override logs

But we DO see:
- WARN SeaweedOutputStream: PARQUET FILE WRITTEN (from close())

Adding WARN log to base SeaweedOutputStream constructor will tell us:
1. IF streams are being created through our code at all
2. If YES, we can trace the call stack
3. If NO, streams are being created through a completely different mechanism
   (maybe Hadoop is caching/reusing FileSystem instances with old code)
pull/7526/head
chrislu 1 week ago
parent
commit
4936f733d1
  1. 2
      other/java/client/src/main/java/seaweedfs/client/SeaweedOutputStream.java

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

@ -47,6 +47,8 @@ public class SeaweedOutputStream extends OutputStream {
public SeaweedOutputStream(FilerClient filerClient, final String path, FilerProto.Entry.Builder entry,
final long position, final int bufferSize, final String replication) {
LOG.warn("[DEBUG-2024] SeaweedOutputStream BASE constructor called: path={} position={} bufferSize={}",
path, position, bufferSize);
this.filerClient = filerClient;
this.replication = replication;
this.path = path;

Loading…
Cancel
Save