You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by GitBox <gi...@apache.org> on 2020/06/09 16:17:06 UTC

[GitHub] [shardingsphere] VitZhou opened a new issue #5970: default-database-strategy:hint can't use

VitZhou opened a new issue #5970:
URL: https://github.com/apache/shardingsphere/issues/5970


   ShardingSphere-JDBC 4.1.1  default-database-strategy:hint can't use
   
   spring:
     shardingsphere:
       sharding:
         default-data-source-name: demo-1
         default-database-strategy:
           hint:
             algorithm-class-name: com.ai94.mysql.annotation.AnnotationHintShardingAlgorithm
       datasource:
         names: demo-1,demo-2
         # 配置第 1 个数据源
         demo-1:
           type: com.zaxxer.hikari.HikariDataSource
           driverClassName: com.mysql.jdbc.Driver
           jdbcUrl: jdbc:mysql://localhost:3306/db_A?useUnicode=true&characterEncoding=UTF-8&serverTimezone=UTC
           username: root
           password: root
         # 配置第 2 个数据源
         demo-2:
           type: com.zaxxer.hikari.HikariDataSource
           driverClassName: com.mysql.jdbc.Driver
           jdbcUrl: jdbc:mysql://localhost:3306/db_B?useUnicode=true&characterEncoding=UTF-8&serverTimezone=UTC
           username: root
           password: root
   


----------------------------------------------------------------
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.

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



[GitHub] [shardingsphere] cnlinjie commented on issue #5970: default-database-strategy:hint can't use

Posted by GitBox <gi...@apache.org>.
cnlinjie commented on issue #5970:
URL: https://github.com/apache/shardingsphere/issues/5970#issuecomment-800055976


   @terrymanu  
   发现你们只会关问题,他提的那么清楚了,
   ```
   default-database-strategy:
   hint:
   algorithm-class-name: com.ai94.mysql.annotation.AnnotationHintShardingAlgorithm
   ```
   这个不会生效,也就是不会调用到 AnnotationHintShardingAlgorithm 
   
   只会回避问题而不是修复问题的话,那issues 拿来干嘛用呢?
   


----------------------------------------------------------------
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.

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



[GitHub] [shardingsphere] terrymanu closed issue #5970: default-database-strategy:hint can't use

Posted by GitBox <gi...@apache.org>.
terrymanu closed issue #5970:
URL: https://github.com/apache/shardingsphere/issues/5970


   


----------------------------------------------------------------
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.

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



[GitHub] [shardingsphere] terrymanu commented on issue #5970: default-database-strategy:hint can't use

Posted by GitBox <gi...@apache.org>.
terrymanu commented on issue #5970:
URL: https://github.com/apache/shardingsphere/issues/5970#issuecomment-645136552


   Closed because of no response anymore


----------------------------------------------------------------
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.

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



[GitHub] [shardingsphere] Roy-luoxiaosong commented on issue #5970: default-database-strategy:hint can't use

Posted by GitBox <gi...@apache.org>.
Roy-luoxiaosong commented on issue #5970:
URL: https://github.com/apache/shardingsphere/issues/5970#issuecomment-999229040


   @gongguoyu  have you resolved this issue , i was involved into this issue . but i can't downgrade to 4.0.0-RC1,  since the XA transaction of this version is not work .  


-- 
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: notifications-unsubscribe@shardingsphere.apache.org

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



[GitHub] [shardingsphere] gongguoyu edited a comment on issue #5970: default-database-strategy:hint can't use

Posted by GitBox <gi...@apache.org>.
gongguoyu edited a comment on issue #5970:
URL: https://github.com/apache/shardingsphere/issues/5970#issuecomment-717851432


   default-database-strategy:hint      It doesn't work anymore(from 4.0.0  to  4.1.1), however, it works well in 4.0.0-rc2


----------------------------------------------------------------
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.

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



[GitHub] [shardingsphere] terrymanu commented on issue #5970: default-database-strategy:hint can't use

Posted by GitBox <gi...@apache.org>.
terrymanu commented on issue #5970:
URL: https://github.com/apache/shardingsphere/issues/5970#issuecomment-641710330


   What is the current error and what is your expectation?
   
   Can you provide more code to help the issue reproduce?


----------------------------------------------------------------
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.

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



[GitHub] [shardingsphere] gongguoyu commented on issue #5970: default-database-strategy:hint can't use

Posted by GitBox <gi...@apache.org>.
gongguoyu commented on issue #5970:
URL: https://github.com/apache/shardingsphere/issues/5970#issuecomment-717851432


   default-database-strategy:hint      It doesn't work anymore, however, it works well in 4.0.0-rc2


----------------------------------------------------------------
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.

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