You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@seatunnel.apache.org by "BruceMaa (via GitHub)" <gi...@apache.org> on 2023/07/06 10:50:06 UTC

[GitHub] [seatunnel] BruceMaa opened a new issue, #5033: [Bug] [connector-cdc-mysql] serverId use `int` not enough

BruceMaa opened a new issue, #5033:
URL: https://github.com/apache/seatunnel/issues/5033

   ### 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
   
   My MySQL instance is RDB on HUAWEI Clound, its serverId is `3078039605`.
   SeaTunnel throw Exception when running.
   
   ### SeaTunnel Version
   
   2.3.2
   
   ### SeaTunnel Config
   
   ```conf
   {
       "env" : {
           "execution.parallelism" : 1,
           "job.mode" : "STREAMING",
           "checkpoint.interval" : 2000
       },
       "source" : [
           {
               "base-url" : "jdbc:mysql://host:port/database",
               "password" : "pwd",
               "table-names" : [
                   "database.tablename"
               ],
               "result_table_name" : "t1",
               "plugin_name" : "MySQL-CDC",
               "server-id" : 3078039605,
               "username" : "username"
           }
       ],
       "sink" : [
           {
               "plugin_name" : "Console"
           }
       ]
   }
   ```
   
   
   ### Running Command
   
   ```shell
   ./bin/seatunnel.sh -e local --config ./config/mysql-cdc-console.conf
   ```
   
   
   ### Error Exception
   
   ```log
   Exception in thread "main" org.apache.seatunnel.core.starter.exception.CommandExecuteException: SeaTunnel job executed failed
           at org.apache.seatunnel.core.starter.seatunnel.command.ClientExecuteCommand.execute(ClientExecuteCommand.java:188)
           at org.apache.seatunnel.core.starter.SeaTunnel.run(SeaTunnel.java:40)
           at org.apache.seatunnel.core.starter.seatunnel.SeaTunnelClient.main(SeaTunnelClient.java:34)
   Caused by: java.lang.IllegalStateException: The server id 3078039605 is not a valid numeric.
           at org.apache.seatunnel.connectors.seatunnel.cdc.mysql.config.ServerIdRange.parseServerId(ServerIdRange.java:109)
           at org.apache.seatunnel.connectors.seatunnel.cdc.mysql.config.ServerIdRange.from(ServerIdRange.java:99)
           at org.apache.seatunnel.connectors.seatunnel.cdc.mysql.config.MySqlSourceConfigFactory.serverId(MySqlSourceConfigFactory.java:46)
           at org.apache.seatunnel.connectors.seatunnel.cdc.mysql.source.MySqlIncrementalSource.createSourceConfigFactory(MySqlIncrementalSource.java:83)
           at org.apache.seatunnel.connectors.cdc.base.source.IncrementalSource.prepare(IncrementalSource.java:116)
           at org.apache.seatunnel.engine.core.parse.JobConfigParser.parseSource(JobConfigParser.java:81)
           at org.apache.seatunnel.engine.core.parse.MultipleTableJobConfigParser.parseSource(MultipleTableJobConfigParser.java:298)
           at org.apache.seatunnel.engine.core.parse.MultipleTableJobConfigParser.parse(MultipleTableJobConfigParser.java:159)
           at org.apache.seatunnel.engine.client.job.JobExecutionEnvironment.getLogicalDag(JobExecutionEnvironment.java:155)
           at org.apache.seatunnel.engine.client.job.JobExecutionEnvironment.execute(JobExecutionEnvironment.java:147)
           at org.apache.seatunnel.core.starter.seatunnel.command.ClientExecuteCommand.execute(ClientExecuteCommand.java:140)
           ... 2 more
   Caused by: java.lang.NumberFormatException: For input string: "3078039605"
           at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
           at java.lang.Integer.parseInt(Integer.java:583)
           at java.lang.Integer.parseInt(Integer.java:615)
           at org.apache.seatunnel.connectors.seatunnel.cdc.mysql.config.ServerIdRange.parseServerId(ServerIdRange.java:106)
           ... 12 more
   ```
   
   
   ### Flink or Spark Version
   
   _No response_
   
   ### 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: commits-unsubscribe@seatunnel.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [seatunnel] github-actions[bot] closed issue #5033: [Bug] [connector-cdc-mysql] serverId use `int` not enough

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] closed issue #5033: [Bug] [connector-cdc-mysql] serverId use `int` not enough
URL: https://github.com/apache/seatunnel/issues/5033


-- 
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: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [seatunnel] github-actions[bot] commented on issue #5033: [Bug] [connector-cdc-mysql] serverId use `int` not enough

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #5033:
URL: https://github.com/apache/seatunnel/issues/5033#issuecomment-1666652586

   This issue has been automatically marked as stale because it has not had recent activity for 30 days. It will be closed in next 7 days if no further activity occurs.


-- 
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: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [seatunnel] github-actions[bot] commented on issue #5033: [Bug] [connector-cdc-mysql] serverId use `int` not enough

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #5033:
URL: https://github.com/apache/seatunnel/issues/5033#issuecomment-1681428378

   This issue has been closed because it has not received response for too long time. You could reopen it if you encountered similar problems in the future.


-- 
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: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org