You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dolphinscheduler.apache.org by GitBox <gi...@apache.org> on 2021/03/01 12:03:07 UTC

[GitHub] [incubator-dolphinscheduler] chengshiwen commented on a change in pull request #4906: [Fix-4905][K8s] Fix incorrect host problem in minikube

chengshiwen commented on a change in pull request #4906:
URL: https://github.com/apache/incubator-dolphinscheduler/pull/4906#discussion_r584657258



##########
File path: dolphinscheduler-common/src/main/java/org/apache/dolphinscheduler/common/utils/NetUtils.java
##########
@@ -44,6 +44,7 @@
  */
 public class NetUtils {
 
+    private static final Pattern MASTER_WORKER_STS_PATTERN = Pattern.compile("(master|worker)-\\d+$");

Review comment:
       I have removed `(master|worker)` and renamed `MASTER_WORKER_STS_PATTERN` to `STS_PATTERN`.
   
   @chenxingchun  tested on minikube in the pod named `dolphinscheduler-worker-0`, and found that the `getHost()` returned `dolphinscheduler-worker-0` which would cause network connection refused, while the correct one should be `dolphinscheduler-worker-0.dolphinscheduler-worker-headless`. So I just gave the changes.




----------------------------------------------------------------
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:
users@infra.apache.org