shardingsphere icon indicating copy to clipboard operation
shardingsphere copied to clipboard

shardignJdbc 5.4.1 use HikariDataSource or DruidDataSource

Open Yule-Momoko opened this issue 2 years ago • 14 comments

Bug Report

For English only, other languages will not accept.

Before report a bug, make sure you have:

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?

5.4.1

Which project did you use? ShardingSphere-JDBC or ShardingSphere-Proxy?

ShardingSphere-JDBC

Expected behavior

shardignJdbc 5.4.1 use HikariDataSource or DruidDataSource?

Actual behavior

image this why?

Reason analyze (If you can)

Steps to reproduce the behavior, such as: SQL to execute, sharding rule configuration, when exception occur etc.

Example codes for reproduce this issue (such as a github link).

Yule-Momoko avatar Dec 14 '23 01:12 Yule-Momoko

I'm having the same issue, here's my configuration

sharding-jdbc.yaml: image

image

application.properties:

# 配置 DataSource Driver
spring.datasource.driver-class-name=org.apache.shardingsphere.driver.ShardingSphereDriver
# 指定 YAML 配置文件
spring.datasource.url=jdbc:shardingsphere:classpath:sharding-jdbc.yaml

When querying, I found that I did not use the data source I configured to query, but instead used HikariPool to query

ReyYang avatar Dec 14 '23 02:12 ReyYang

Ref #24348

zhaojinchao95 avatar Dec 14 '23 02:12 zhaojinchao95

I've noticed this issue hasn't been solved; are there any other solutions to this now?

ReyYang avatar Dec 14 '23 02:12 ReyYang

Does it have to be cluster mode?

Yule-Momoko avatar Dec 14 '23 02:12 Yule-Momoko

I've noticed this issue hasn't been solved; are there any other solutions to this now?

Sorry, not yet

zhaojinchao95 avatar Dec 14 '23 02:12 zhaojinchao95

I've noticed this issue hasn't been solved; are there any other solutions to this now?

Sorry, not yet

Are there other versions that can avoid this problem?

ReyYang avatar Dec 14 '23 02:12 ReyYang

I've noticed this issue hasn't been solved; are there any other solutions to this now?

Sorry, not yet

Does the druid connection count configuration still work if Hikari is actually used

Yule-Momoko avatar Dec 14 '23 02:12 Yule-Momoko

I've noticed this issue hasn't been solved; are there any other solutions to this now?

Sorry, not yet

Are there other versions that can avoid this problem?

I think not, Maybe you can consider submit a pull request to optimization it

zhaojinchao95 avatar Dec 14 '23 02:12 zhaojinchao95

I've noticed this issue hasn't been solved; are there any other solutions to this now?

Sorry, not yet

Does the druid connection count configuration still work if Hikari is actually used

I don't know, you can try it

zhaojinchao95 avatar Dec 14 '23 02:12 zhaojinchao95

OK, I'll consider submitting my own PR later, but I need to run the project properly for now

ReyYang avatar Dec 14 '23 02:12 ReyYang

OK, I'll consider submitting my own PR later, but I need to run the project properly for now . Sorry, your PR can only be used in the next release.

zhaojinchao95 avatar Dec 14 '23 02:12 zhaojinchao95

There hasn't been any activity on this issue recently, and in order to prioritize active issues, it will be marked as stale.

github-actions[bot] avatar Jan 13 '24 20:01 github-actions[bot]

@zhaojinchao95 @ReyYang Will this problem still be solved?

liming0 avatar Jun 05 '24 08:06 liming0

There hasn't been any activity on this issue recently, and in order to prioritize active issues, it will be marked as stale.

github-actions[bot] avatar Jul 09 '24 20:07 github-actions[bot]