Skip to content

Commit

Permalink
feat: log current process record
Browse files Browse the repository at this point in the history
  • Loading branch information
zengbao committed Aug 22, 2024
1 parent 38c9b51 commit 72cfafd
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
import org.apache.paimon.options.Options;
import org.apache.paimon.table.FileStoreTable;
import org.apache.paimon.utils.ExecutorThreadFactory;
import org.apache.paimon.utils.JsonSerdeUtil;

import org.apache.flink.runtime.state.StateInitializationContext;
import org.apache.flink.runtime.state.StateSnapshotContext;
Expand Down Expand Up @@ -165,7 +166,7 @@ public void processElement(StreamRecord<CdcMultiplexRecord> element) throws Exce
try {
write.write(optionalConverted.get());
} catch (Exception e) {
throw new IOException(e);
throw new IOException("Error when write value" + JsonSerdeUtil.toJson(record), e);
}
}

Expand Down

0 comments on commit 72cfafd

Please sign in to comment.