You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I had searched in the issues and found no similar issues.
What happened
The NPE was thrown when running within the local IDE, the PG version is 17. My maven dependencies of seatunnel-examples/seatunnel-flink-connector-v2-example/pom.xml
Caused by: org.apache.seatunnel.common.utils.SeaTunnelException: Read split SnapshotSplit(tableId=postgres.udp.test_cdc, splitKeyType=null, splitStart=null, splitEnd=null, lowWatermark=null, highWatermark=null) error due to java.lang.NullPointerException.
at org.apache.seatunnel.connectors.cdc.base.source.reader.external.IncrementalSourceScanFetcher.checkReadException(IncrementalSourceScanFetcher.java:216) ~[classes/:?]
at org.apache.seatunnel.connectors.cdc.base.source.reader.external.IncrementalSourceScanFetcher.pollSplitRecords(IncrementalSourceScanFetcher.java:117) ~[classes/:?]
at org.apache.seatunnel.connectors.cdc.base.source.reader.IncrementalSourceSplitReader.fetch(IncrementalSourceSplitReader.java:75) ~[classes/:?]
at org.apache.seatunnel.connectors.seatunnel.common.source.reader.fetcher.FetchTask.run(FetchTask.java:54) ~[connector-file-s3-2.3.9-SNAPSHOT.jar:2.3.9-SNAPSHOT]
at org.apache.seatunnel.connectors.seatunnel.common.source.reader.fetcher.SplitFetcher.runOnce(SplitFetcher.java:162) ~[connector-file-s3-2.3.9-SNAPSHOT.jar:2.3.9-SNAPSHOT]
... 7 more
Caused by: io.debezium.DebeziumException: java.lang.NullPointerException
at org.apache.seatunnel.connectors.seatunnel.cdc.postgres.source.reader.snapshot.PostgresSnapshotSplitReadTask.execute(PostgresSnapshotSplitReadTask.java:112) ~[classes/:?]
at org.apache.seatunnel.connectors.seatunnel.cdc.postgres.source.reader.snapshot.PostgresSnapshotFetchTask.execute(PostgresSnapshotFetchTask.java:65) ~[classes/:?]
at org.apache.seatunnel.connectors.cdc.base.source.reader.external.IncrementalSourceScanFetcher.lambda$submitTask$0(IncrementalSourceScanFetcher.java:96) ~[classes/:?]
... 6 more
Caused by: java.lang.NullPointerException
at org.apache.seatunnel.connectors.seatunnel.cdc.postgres.source.reader.snapshot.PostgresSnapshotSplitReadTask.createDataEventsForTable(PostgresSnapshotSplitReadTask.java:183) ~[classes/:?]
at org.apache.seatunnel.connectors.seatunnel.cdc.postgres.source.reader.snapshot.PostgresSnapshotSplitReadTask.createDataEvents(PostgresSnapshotSplitReadTask.java:170) ~[classes/:?]
at org.apache.seatunnel.connectors.seatunnel.cdc.postgres.source.reader.snapshot.PostgresSnapshotSplitReadTask.doExecute(PostgresSnapshotSplitReadTask.java:136) ~[classes/:?]
at org.apache.seatunnel.connectors.seatunnel.cdc.postgres.source.reader.snapshot.PostgresSnapshotSplitReadTask.execute(PostgresSnapshotSplitReadTask.java:107) ~[classes/:?]
at org.apache.seatunnel.connectors.seatunnel.cdc.postgres.source.reader.snapshot.PostgresSnapshotFetchTask.execute(PostgresSnapshotFetchTask.java:65) ~[classes/:?]
at org.apache.seatunnel.connectors.cdc.base.source.reader.external.IncrementalSourceScanFetcher.lambda$submitTask$0(IncrementalSourceScanFetcher.java:96) ~[classes/:?]
newTableId has a null catalogName field, thus lead to databaseSchema.tableFor(newTableId) return null value.
litiliu
changed the title
[Bug] [Connector-V2][Postgres-CDC] Read split SnapshotSplit error due to java.lang.NullPointerException
[Bug] [Connector-V2][Postgres-CDC] Read SnapshotSplit error due to java.lang.NullPointerException
Jan 17, 2025
Search before asking
What happened
The NPE was thrown when running within the local IDE, the PG version is 17. My maven dependencies of seatunnel-examples/seatunnel-flink-connector-v2-example/pom.xml
SeaTunnel Version
2.3.9
SeaTunnel Config
Running Command
Error Exception
Zeta or Flink or Spark Version
Flink 1.18.1
Java or Scala Version
java 11
Screenshots
No response
Are you willing to submit PR?
Code of Conduct
The text was updated successfully, but these errors were encountered: