-
Notifications
You must be signed in to change notification settings - Fork 20
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
obkv-table-client-rs 驱动 运行报错 #6
Comments
Which OB version are you testing? We only test this SDK against 2.33 or less than 1.0 |
OB version:3.1.4 |
We haven't test against 3.1.4, maybe there are wire protocol changes, we will fix this in future, thanks for reporting. PS: Welcome to open a PR to fix this if you're interested. |
看了一下,主要原因应该是mysql的package版本是16.1.0,这个版本过低了,query的语法发生了变化。接口可能不兼容了,需要改的地方有点多。主要修改点在src/location/mod.rs、src/location/util.rs里面。mysql驱动升级到23.0.0后修改对应的接口,理论上可以解决。 |
@jiacai2050 我在OB 4.1.0重复了 @FrankXMX 下面的操作,同样会得到这个错误,但是我观察到mysql的package已经升级到了24.0.0,但问题依然存在。 经过Debug发现错误发生在创建Mysql Pool的时候。由于上面builder构造参数的时候prefer_socket一项默认为true,当client通过 我将prefer_socket一项设置为false(如下图): |
@JohnsonLee-debug Thank you for helping to solve the problem of the MySQL pool in docker! Conclusion: obkv-table-client-rs dosen't support 4.x observer now. We need meta info for routing in the client. Currently, this information is obtained through SQL. Different versions of observers need to use different methods and SQL. We now only support 3.x and 2.x observers. PS: Welcome to open an issue related to the problem of the MySQL pool in the docker. |
场景:
observer、ob-configserver部署成功,且使用obkv-table-client-java测试正常。obkv-table-client-rs的demo编译正常,运行报错。
报错信息:
详细报错信息:
测试代码:
curl测试ob-configserver正常:
The text was updated successfully, but these errors were encountered: