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

Resolve hostname in tics config #311

Merged
merged 8 commits into from
Nov 1, 2019
Merged

Resolve hostname in tics config #311

merged 8 commits into from
Nov 1, 2019

Conversation

lidezhu
Copy link
Contributor

@lidezhu lidezhu commented Nov 1, 2019

No description provided.

@@ -64,7 +64,7 @@ int64_t IndexReader::getReadIndex()
for (const auto & learner : learners)
{
std::string addr = cache->getStore(bo, learner.store_id()).addr;
if (addr.size() > 0 && convertAddr(addr) == suggested_ip)
if (addr.size() > 0 && convertAddr(addr) == convertAddr(suggested_address))
Copy link
Contributor

Choose a reason for hiding this comment

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

There might be a legacy bug: finding target learner only compares IP address, we need to consider port as well to allow multiple instances on same host.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed.

Copy link
Contributor

@zanmato1984 zanmato1984 left a comment

Choose a reason for hiding this comment

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

LGTM

@lidezhu
Copy link
Contributor Author

lidezhu commented Nov 1, 2019

/run-integration-tests

1 similar comment
@lidezhu
Copy link
Contributor Author

lidezhu commented Nov 1, 2019

/run-integration-tests

@zanmato1984 zanmato1984 merged commit dc99ed9 into master Nov 1, 2019
@zanmato1984 zanmato1984 deleted the resolve-hostname branch November 1, 2019 15:33
CalvinNeo pushed a commit to CalvinNeo/tiflash that referenced this pull request Nov 10, 2024
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.

2 participants