hanyuncai opened a new issue, #3929:
URL: https://github.com/apache/incubator-seatunnel/issues/3929

   ### Search before asking
   
   - [X] I had searched in the 
[issues](https://github.com/apache/incubator-seatunnel/issues?q=is%3Aissue+label%3A%22bug%22)
 and found no similar issues.
   
   
   ### What happened
   
   java.lang.RuntimeException: SplitFetcher thread 0 received unexpected 
exception while polling the records
           at 
org.apache.seatunnel.connectors.seatunnel.common.source.reader.fetcher.SplitFetcher.runOnce(SplitFetcher.java:166)
           at 
org.apache.seatunnel.connectors.seatunnel.common.source.reader.fetcher.SplitFetcher.run(SplitFetcher.java:82)
           at 
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
           at java.util.concurrent.FutureTask.run(FutureTask.java:266)
           at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
           at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
           at java.lang.Thread.run(Thread.java:745)
   Caused by: java.lang.ClassCastException: io.debezium.relational.TableId 
cannot be cast to io.debezium.relational.TableId
           at 
org.apache.seatunnel.connectors.seatunnel.cdc.mysql.source.MySqlDialect.createFetchTaskContext(MySqlDialect.java:121)
           at 
org.apache.seatunnel.connectors.seatunnel.cdc.mysql.source.MySqlDialect.createFetchTaskContext(MySqlDialect.java:54)
           at 
org.apache.seatunnel.connectors.cdc.base.source.reader.IncrementalSourceSplitReader.checkSplitOrStartNext(IncrementalSourceSplitReader.java:132)
           at 
org.apache.seatunnel.connectors.cdc.base.source.reader.IncrementalSourceSplitReader.fetch(IncrementalSourceSplitReader.java:64)
           at 
org.apache.seatunnel.connectors.seatunnel.common.source.reader.fetcher.FetchTask.run(FetchTask.java:53)
           at 
org.apache.seatunnel.connectors.seatunnel.common.source.reader.fetcher.SplitFetcher.runOnce(SplitFetcher.java:163)
           ... 6 more
   
   
   ### SeaTunnel Version
   
   seatunnel=2.3.0
   
   ### SeaTunnel Config
   
   ```conf
   env{
     execution.parallelism=1
     job.mode = "STREAMING"
     job.name = "seatunnel-mysql-cdc"
     jars = 
"/opt/servers/seatunnel-2.3.0/connectors/seatunnel/connector-cdc-mysql-2.3.0.jar"
     checkpoint.interval = 1000
   }
   
   source {
     MySQL-CDC {
       result_table_name = "mysql-cdc"
       parallelism = 1
       server-id = 5656
       port = 3306
       hostname = "xxx.xxx.xxx.xx"
       username = "kingshardadmin"
       password = "***********"
       database-name = "test"
       table-name = "table1"
       base-url = "jdbc:mysql://xxx.xxx.xxx.xx:3306"
       startup.mode = "INITIAL"
       stop.mode = "NEVER"
   #   server-time-zone = "UTC+8"
     }
   }
   
   transform{
   
   }
   sink{
      console{
      }
   }
   ```
   
   
   ### Running Command
   
   ```shell
   ./bin/seatunnel.sh --config 
./config/example/streaming/mysql_cdc_to_console.template -e local
   ```
   
   
   ### Error Exception
   
   ```log
   [MySQL-CDC-SourceTask (1/1)] end with state FAILED and Exception: 
java.lang.RuntimeException: One or more fetchers have encountered exception
           at 
org.apache.seatunnel.connectors.seatunnel.common.source.reader.fetcher.SplitFetcherManager.checkErrors(SplitFetcherManager.java:143)
           at 
org.apache.seatunnel.connectors.seatunnel.common.source.reader.SourceReaderBase.getNextFetch(SourceReaderBase.java:155)
           at 
org.apache.seatunnel.connectors.seatunnel.common.source.reader.SourceReaderBase.pollNext(SourceReaderBase.java:91)
           at 
org.apache.seatunnel.connectors.cdc.base.source.reader.IncrementalSourceReader.pollNext(IncrementalSourceReader.java:94)
           at 
org.apache.seatunnel.engine.server.task.flow.SourceFlowLifeCycle.collect(SourceFlowLifeCycle.java:115)
           at 
org.apache.seatunnel.engine.server.task.SourceSeaTunnelTask.collect(SourceSeaTunnelTask.java:68)
           at 
org.apache.seatunnel.engine.server.task.SeaTunnelTask.stateProcess(SeaTunnelTask.java:157)
           at 
org.apache.seatunnel.engine.server.task.SourceSeaTunnelTask.call(SourceSeaTunnelTask.java:74)
           at 
org.apache.seatunnel.engine.server.TaskExecutionService$BlockingWorker.run(TaskExecutionService.java:357)
           at 
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
           at java.util.concurrent.FutureTask.run(FutureTask.java:266)
           at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
           at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
           at java.lang.Thread.run(Thread.java:745)
   Caused by: java.lang.RuntimeException: SplitFetcher thread 0 received 
unexpected exception while polling the records
           at 
org.apache.seatunnel.connectors.seatunnel.common.source.reader.fetcher.SplitFetcher.runOnce(SplitFetcher.java:166)
           at 
org.apache.seatunnel.connectors.seatunnel.common.source.reader.fetcher.SplitFetcher.run(SplitFetcher.java:82)
           ... 5 more
   Caused by: java.lang.ClassCastException: io.debezium.relational.TableId 
cannot be cast to io.debezium.relational.TableId
           at 
org.apache.seatunnel.connectors.seatunnel.cdc.mysql.source.MySqlDialect.createFetchTaskContext(MySqlDialect.java:121)
           at 
org.apache.seatunnel.connectors.seatunnel.cdc.mysql.source.MySqlDialect.createFetchTaskContext(MySqlDialect.java:54)
           at 
org.apache.seatunnel.connectors.cdc.base.source.reader.IncrementalSourceSplitReader.checkSplitOrStartNext(IncrementalSourceSplitReader.java:132)
           at 
org.apache.seatunnel.connectors.cdc.base.source.reader.IncrementalSourceSplitReader.fetch(IncrementalSourceSplitReader.java:64)
           at 
org.apache.seatunnel.connectors.seatunnel.common.source.reader.fetcher.FetchTask.run(FetchTask.java:53)
           at 
org.apache.seatunnel.connectors.seatunnel.common.source.reader.fetcher.SplitFetcher.runOnce(SplitFetcher.java:163)
           ... 6 more
   ```
   
   
   ### Flink or Spark Version
   
   flink=1.13.0
   spark=2.3.0
   
   ### Java or Scala Version
   
   java=1.8
   scala=2.11.12
   
   ### Screenshots
   
   
![image](https://user-images.githubusercontent.com/59333569/212026587-f2edf7e6-7460-4f2e-94fb-edd3358e803a.png)
   
   
   ### Are you willing to submit PR?
   
   - [ ] 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