WenDing-Y opened a new issue, #8447:
URL: https://github.com/apache/seatunnel/issues/8447

   ### Search before asking
   
   - [X] I had searched in the 
[issues](https://github.com/apache/seatunnel/issues?q=is%3Aissue+label%3A%22bug%22)
 and found no similar issues.
   
   
   ### What happened
   
   env {
     parallelism = 1
     job.mode = "STREAMING"
     checkpoint.interval = 5000
   }
   
   source {
     # This is a example source plugin **only for test and demonstrate the 
feature source plugin**
     TiDB-CDC {
       result_table_name = "products_tidb_cdc"
       base-url = "jdbc:mysql://tidb0:4000/inventory"
       driver = "com.mysql.cj.jdbc.Driver"
       tikv.grpc.timeout_in_ms = 20000
       pd-addresses = "pd0:2379"
       username = "root"
       password = ""
       database-name = "inventory"
       table-name = "products"
     }
   }
   
   transform {
   }
   
   sink {
     jdbc {
       source_table_name = "products_tidb_cdc"
       url = "jdbc:mysql://tidb0:4000/inventory"
       driver = "com.mysql.cj.jdbc.Driver"
       user = "root"
       password = ""
       database = "inventory"
       table = "products_sink"
       generate_sink_sql = true
       primary_keys = ["id"]
     }
   }
   
   
   
   
   
   
   ### SeaTunnel Version
   
   2.3.8
   
   ### SeaTunnel Config
   
   ```conf
   env {
     parallelism = 1
     job.mode = "STREAMING"
     checkpoint.interval = 5000
   }
   
   source {
     # This is a example source plugin **only for test and demonstrate the 
feature source plugin**
     TiDB-CDC {
       result_table_name = "products_tidb_cdc"
       base-url = "jdbc:mysql://tidb0:4000/inventory"
       driver = "com.mysql.cj.jdbc.Driver"
       tikv.grpc.timeout_in_ms = 20000
       pd-addresses = "pd0:2379"
       username = "root"
       password = ""
       database-name = "inventory"
       table-name = "products"
     }
   }
   
   transform {
   }
   
   sink {
     jdbc {
       source_table_name = "products_tidb_cdc"
       url = "jdbc:mysql://tidb0:4000/inventory"
       driver = "com.mysql.cj.jdbc.Driver"
       user = "root"
       password = ""
       database = "inventory"
       table = "products_sink"
       generate_sink_sql = true
       primary_keys = ["id"]
     }
   }
   ```
   
   
   ### Running Command
   
   ```shell
   none
   ```
   
   
   ### Error Exception
   
   ```log
   at 
org.apache.seatunnel.connectors.seatunnel.cdc.tidb.source.deserializer.SeaTunnelRowStreamingRecordDeserializer.deserialize(SeaTunnelRowStreamingRecordDeserializer.java:76)
        at 
org.apache.seatunnel.connectors.seatunnel.cdc.tidb.source.reader.TiDBSourceReader.captureStreamingEvents(TiDBSourceReader.java:188)
        at 
org.apache.seatunnel.connectors.seatunnel.cdc.tidb.source.reader.TiDBSourceReader.pollNext(TiDBSourceReader.java:135)
        at 
org.apache.seatunnel.translation.flink.source.FlinkSourceReader.pollNext(FlinkSourceReader.java:81)
        at 
org.apache.flink.streaming.api.operators.SourceOperator.emitNext(SourceOperator.java:389)
        at 
org.apache.flink.streaming.runtime.io.StreamTaskSourceInput.emitNext(StreamTaskSourceInput.java:68)
        at 
org.apache.flink.streaming.runtime.io.StreamOneInputProcessor.processInput(StreamOneInputProcessor.java:65)
        at 
org.apache.flink.streaming.runtime.tasks.StreamTask.processInput(StreamTask.java:545)
        at 
org.apache.flink.streaming.runtime.tasks.mailbox.MailboxProcessor.runMailboxLoop(MailboxProcessor.java:231)
        at 
org.apache.flink.streaming.runtime.tasks.StreamTask.runMailboxLoop(StreamTask.java:836)
        at 
org.apache.flink.streaming.runtime.tasks.StreamTask.invoke(StreamTask.java:785)
        at 
org.apache.flink.runtime.taskmanager.Task.runWithSystemExitMonitoring(Task.java:935)
        at 
org.apache.flink.runtime.taskmanager.Task.restoreAndInvoke(Task.java:914)
        at org.apache.flink.runtime.taskmanager.Task.doRun(Task.java:728)
        at org.apache.flink.runtime.taskmanager.Task.run(Task.java:550)
        at java.base/java.lang.Thread.run(Unknown Source)
   Caused by: java.lang.RuntimeException: 
org.apache.flink.streaming.runtime.tasks.ExceptionInChainedOperatorException: 
Could not forward element to next operator
        at 
org.apache.seatunnel.translation.flink.source.FlinkRowCollector.collect(FlinkRowCollector.java:72)
        at 
org.apache.seatunnel.translation.flink.source.FlinkRowCollector.collect(FlinkRowCollector.java:40)
        at 
org.apache.seatunnel.connectors.seatunnel.cdc.tidb.source.deserializer.SeaTunnelRowStreamingRecordDeserializer.deserialize(SeaTunnelRowStreamingRecordDeserializer.java:71)
        ... 15 more
   Caused by: 
org.apache.flink.streaming.runtime.tasks.ExceptionInChainedOperatorException: 
Could not forward element to next operator
        at 
org.apache.flink.streaming.runtime.tasks.CopyingChainingOutput.pushToOperator(CopyingChainingOutput.java:99)
        at 
org.apache.flink.streaming.runtime.tasks.CopyingChainingOutput.collect(CopyingChainingOutput.java:57)
        at 
org.apache.flink.streaming.runtime.tasks.CopyingChainingOutput.collect(CopyingChainingOutput.java:29)
        at 
org.apache.flink.streaming.runtime.tasks.SourceOperatorStreamTask$AsyncDataOutputToOutput.emitRecord(SourceOperatorStreamTask.java:313)
   ```
   
   
   ### Zeta or Flink or Spark Version
   
   1.16
   
   ### Java or Scala Version
   
   _No response_
   
   ### Screenshots
   
   _No response_
   
   ### Are you willing to submit PR?
   
   - [X] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of 
Conduct](https://www.apache.org/foundation/policies/conduct)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to