Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OceanBase选择ExceptionSorter存在缺陷 #4322

Closed
it-linnan opened this issue Jun 9, 2021 · 0 comments
Closed

OceanBase选择ExceptionSorter存在缺陷 #4322

it-linnan opened this issue Jun 9, 2021 · 0 comments
Milestone

Comments

@it-linnan
Copy link

OceanBase存在两种租户:Oracle、MySQL,不同租户应选择对应的ExceptionSorter
DruidDataSource.java中,调用JdbcUtils.getDbType方法根据jdbcUrl获取OB的租户类型
image
当url前缀为jdbc:oceanbase:oracle:时,认为是Oracle租户,当前缀为jdbc:oceanbase:时,认为是MySQL租户
image
从而选择对应的ExceptionSorter
image
但是Oracle租户,也可以使用jdbc:oceanbase:前缀配置url,当用户使用jdbc:oceanbase:配置url时,连接池将错误的使用MySqlExceptionSorter,导致不能按照预期剔除不可用连接

@wenshao wenshao added this to the 1.2.7 milestone Jun 12, 2021
@wenshao wenshao modified the milestones: 1.2.7, 1.2.9, 1.2.8 Oct 3, 2021
@wenshao wenshao closed this as completed Oct 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants