CalvinKirs commented on a change in pull request #3186:
URL:
https://github.com/apache/incubator-dolphinscheduler/pull/3186#discussion_r453154468
##########
File path:
dolphinscheduler-common/src/main/java/org/apache/dolphinscheduler/common/utils/NetUtils.java
##########
@@ -206,4 +215,8 @@ public static boolean
ignoreNetworkInterface(NetworkInterface networkInterface)
|| !networkInterface.isUp();
}
+ public static boolean isSpecifyNetworkInterface(NetworkInterface
networkInterface) {
+ String preferredNetworkInterface =
System.getProperty(DOLPHIN_SCHEDULER_PREFERRED_NETWORK_INTERFACE);
+ return Objects.equals(networkInterface.getDisplayName(),
preferredNetworkInterface);
+ }
Review comment:
- Hello, this is exclusive to net, other business is not involved, so I
think it is better to achieve here,how do you think?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]