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

Modify the toHostAddr interface to support host resolved (gethostbyname). #935

Merged

Conversation

monadbobo
Copy link
Contributor

close #931

…port the host name.

Modify the toHostAddr interface to support host resolved (gethostbyname).
@monadbobo monadbobo added the ready-for-testing PR: ready for the CI test label Sep 12, 2019
@nebula-community-bot
Copy link
Member

Unit testing failed.

@monadbobo
Copy link
Contributor Author

Jenkins go!

@nebula-community-bot
Copy link
Member

Unit testing passed.

laura-ding
laura-ding previously approved these changes Sep 16, 2019
src/common/network/NetworkUtils.cpp Outdated Show resolved Hide resolved
src/common/network/NetworkUtils.cpp Outdated Show resolved Hide resolved
@nebula-community-bot
Copy link
Member

Unit testing passed.

dutor
dutor previously approved these changes Sep 16, 2019
Copy link
Contributor

@dutor dutor left a comment

Choose a reason for hiding this comment

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

Even though imperfect, but still a positive improvement.

@dutor
Copy link
Contributor

dutor commented Sep 16, 2019

Wait a minute.

Maybe It would be better to change the name of the interface accordingly to indicates that this function returns multiple IP addresses. Agree?

@monadbobo
Copy link
Contributor Author

Wait a minute.

Maybe It would be better to change the name of the interface accordingly to indicates that this function returns multiple IP addresses. Agree?

Maybe we can split "toHostAddr(folly::StringPiece ip, int32_t port)" to two functions, getHostByName and getHostByAddr, and then call them in "toHostAddr(folly::StringPiece ipPort)"?

@nebula-community-bot
Copy link
Member

Unit testing passed.

@monadbobo monadbobo requested a review from CPWstatic October 21, 2019 15:06
Copy link
Contributor

@CPWstatic CPWstatic left a comment

Choose a reason for hiding this comment

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

LGTM.

src/common/network/NetworkUtils.cpp Outdated Show resolved Hide resolved
@nebula-community-bot
Copy link
Member

Unit testing passed.

Copy link
Contributor

@dutor dutor left a comment

Choose a reason for hiding this comment

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

LGTM.

@jude-zhu jude-zhu requested review from CPWstatic and removed request for a user December 19, 2019 07:51
@nebula-community-bot
Copy link
Member

Unit testing passed.

@dutor dutor merged commit a786286 into vesoft-inc:master Dec 19, 2019
tong-hao pushed a commit to tong-hao/nebula that referenced this pull request Jun 1, 2021
…me). (vesoft-inc#935)

* Issue vesoft-inc#931 the "meta_server_addrs" in the configuration support the host name.

Modify the toHostAddr interface to support host resolved (gethostbyname).

* replace the gethostbyname with getaddrinfo.

* Refactoring part of the code.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready-for-testing PR: ready for the CI test
Projects
None yet
Development

Successfully merging this pull request may close these issues.

The meta_server_addrs in the configuration should support the host name.
5 participants