-
Notifications
You must be signed in to change notification settings - Fork 24
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
function connect by rs list #20
base: master
Are you sure you want to change the base?
Conversation
configserver 已经开源了, 使用configserver 就可以拿到正确的rs list |
这是定制功能 可以少一个组件依赖 |
OCEANBASE_DATABASE, ALL_DUMMY_TABLE); | ||
|
||
|
||
TableEntry tableEntry = loadTableEntryRandomly(rsList,// |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it's better to reuse the logic below, as the code is mainly the same with the original method.
private void initMetadataFromRS() throws Exception { | ||
|
||
List<ObServerAddr> rsList = new ArrayList<ObServerAddr>(); | ||
for (String serverStr : getRsList().split(":")){ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Set port?
目前客户端只支持使用configurl连接
增加制定rs list 功能,因为与ocp解耦不会获取到region信息,增加参数手工指定region