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

HAWQ-1051. Failing in reverse DNS lookup causes resource manager core… #928

Closed
wants to merge 1 commit into from

Conversation

stanlyxiang
Copy link
Member

… dump

{
elog(WARNING, "Failed to reverse DNS lookup for ip %s.", fts_client_ip);
return true;
}

Copy link
Contributor

Choose a reason for hiding this comment

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

If it is easy to modify we could use the replacement of gethostbyaddr().
By the way, why need to quit after "reverse dns lookup" failure. Should not
an IP address work also?

DESCRIPTION
The gethostbyname_() and gethostbyaddr_() functions are obsolete. Applications
should use getaddrinfo(3) and getnameinfo(3) instead.

Copy link
Member Author

Choose a reason for hiding this comment

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

Not quit after "reverse dns lookup" failure. This function handles the IMAlive message from segment resource manager process. "return true" just ignore this message and do not continue the followup work after a lookup failure. IP address is not enough since followup work needs the hostname.

For replace gethostbyaddr(), @jiny2 could you give some comments ?

@huor
Copy link
Contributor

huor commented Sep 24, 2016

It would be great if the commit message can be updated to include both stanlyxiang and jiny2 as author.

@xunzhang
Copy link
Member

@huor Could you give a commit example like this?

@huor
Copy link
Contributor

huor commented Sep 25, 2016

@xunzhang, here is a tool with that support: https://github.com/git-duet/git-duet. You can also find the example in page home page.

@stanlyxiang
Copy link
Member Author

Merged.

@stanlyxiang stanlyxiang closed this Oct 9, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants