wsm12138 opened a new issue, #18770: URL: https://github.com/apache/shardingsphere/issues/18770
## Bug Report **For English only**, other languages will not accept. Before report a bug, make sure you have: - Searched open and closed [GitHub issues](https://github.com/apache/shardingsphere/issues). - Read documentation: [ShardingSphere Doc](https://shardingsphere.apache.org/document/current/en/overview). Please pay attention on issues you submitted, because we maybe need more details. If no response anymore and we cannot reproduce it on current information, we will **close it**. Please answer these questions before submitting your issue. Thanks! ### Which version of ShardingSphere did you use? master ### Which project did you use? ShardingSphere-JDBC or ShardingSphere-Proxy? ShardingSphere-Proxy ### Expected behavior ``` mysql> show sharding table rules; sharding rule ~ ``` ### Actual behavior ``` mysql> show sharding table rules; ERROR 2013 (HY000): Lost connection to MySQL server during query ``` ### Reason analyze (If you can) Maybe DistSQL have BUG? keyGenerator in yaml don't hava verify? ### Steps to reproduce the behavior, such as: SQL to execute, sharding rule configuration, when exception occur etc. ##### use yaml ``` databaseName: sharding_db dataSources: ds_0: url: jdbc:mysql://127.0.0.1:3306/ds_0?serverTimezone=UTC&useSSL=false&allowPublicKeyRetrieval=true username: root password: root maxPoolSize: 40 minPoolSize: 1 ds_1: url: jdbc:mysql://127.0.0.1:3306/ds_1?serverTimezone=UTC&useSSL=false&allowPublicKeyRetrieval=true username: root password: root maxPoolSize: 40 minPoolSize: 1 ds_2: url: jdbc:mysql://127.0.0.1:3306/ds_2?serverTimezone=UTC&useSSL=false&allowPublicKeyRetrieval=true username: root password: root maxPoolSize: 40 minPoolSize: 1 ds_3: url: jdbc:mysql://127.0.0.1:3306/ds_3?serverTimezone=UTC&useSSL=false&allowPublicKeyRetrieval=true username: root password: root maxPoolSize: 5 minPoolSize: 1 ds_4: url: jdbc:mysql://127.0.0.1:3306/ds_4?serverTimezone=UTC&useSSL=false&allowPublicKeyRetrieval=true username: root password: root maxPoolSize: 5 minPoolSize: 1 rules: - !SHARDING autoTables: t_order: actualDataSources: source_readwrite keyGenerateStrategy: column: order_id keyGeneratorName: t_order_snowflake logicTable: t_order shardingStrategy: standard: shardingAlgorithmName: t_order_hash_mod shardingColumn: order_id shardingAlgorithms: t_order_inline: props: algorithm-expression: t_order_${order_id % 2} type: INLINE t_order_hash_mod: props: sharding-count: '6' type: hash_mod keyGenerators: snowflake: type: SNOWFLAKE scalingName: default_scaling scaling: default_scaling: input: workerThread: 40 batchSize: 1000 output: workerThread: 40 batchSize: 1000 streamChannel: type: MEMORY props: block-queue-size: 10000 dataConsistencyChecker: type: DATA_MATCH props: chunk-size: 1000 - !READWRITE_SPLITTING dataSources: source_readwrite: type: Static props: write-data-source-name: ds_0 read-data-source-names: ds_1 loadBalancerName: random target_readwrite: type: Static props: write-data-source-name: ds_2 read-data-source-names: ds_3 loadBalancerName: random loadBalancers: random: type: RANDOM ``` ### Example codes for reproduce this issue (such as a github link). -- 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]
