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

[Improvement][api] https://github.com/datavane/datasophon/issues/364 Improvement #397

Open
wants to merge 29 commits into
base: dev
Choose a base branch
from

Conversation

liu-hai
Copy link
Contributor

@liu-hai liu-hai commented Aug 30, 2023

Purpose of the pull request

主机连接校验与主机Agent分发时,若分发节点与主节点在同一台机器上,无需进行校验和远程分发

Brief change log

改进主要是根据当前manage主机的ip来进行判断,如果运行的流程ip和当前manage主机的ip相同,就不进行进行校验和远程分发,而是直接使用调用本地shell脚本的方式来进行分发

Verify this pull request

This pull request is code cleanup without any test coverage.

(or)

This pull request is already covered by existing tests, such as (please describe tests).

(or)

This change added tests and can be verified as follows:

(or)

If your pull request contains incompatible changes, you should also pull request the documentation to https://github.com/datasophon/datasophon-website

InetAddress ip = InetAddress.getLocalHost();
return ip.getHostAddress();
} catch (UnknownHostException e) {
throw new RuntimeException(e);
Copy link
Member

Choose a reason for hiding this comment

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

use exists api to get hostname

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