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

function connect by rs list #20

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Conversation

hohice
Copy link

@hohice hohice commented Jun 17, 2022

目前客户端只支持使用configurl连接
增加制定rs list 功能,因为与ocp解耦不会获取到region信息,增加参数手工指定region

@longdafeng
Copy link
Member

configserver 已经开源了, 使用configserver 就可以拿到正确的rs list
https://github.com/oceanbase/oceanbase/tree/master/tools/ob-configserver

@hohice
Copy link
Author

hohice commented Jun 28, 2022

configserver 已经开源了, 使用configserver 就可以拿到正确的rs list https://github.com/oceanbase/oceanbase/tree/master/tools/ob-configserver

这是定制功能 可以少一个组件依赖

OCEANBASE_DATABASE, ALL_DUMMY_TABLE);


TableEntry tableEntry = loadTableEntryRandomly(rsList,//
Copy link
Member

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(":")){
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Set port?

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

Successfully merging this pull request may close these issues.

3 participants