kevinrr888 commented on code in PR #5730:
URL: https://github.com/apache/accumulo/pull/5730#discussion_r2195317251


##########
assemble/bin/accumulo-cluster:
##########
@@ -659,6 +661,19 @@ function control_services() {
     fi
   fi
 
+  ssh_wait
+
+}
+
+function ssh_wait() {
+  #shellcheck disable=SC2009
+  count=$(ps -ef | grep ssh | grep -c "accumulo-service")
+  while ((count > 0)); do
+    echo "waiting on $count ssh commands to complete"
+    sleep 2
+    #shellcheck disable=SC2009
+    count=$(ps -ef | grep ssh | grep -c "accumulo-service")
+  done

Review Comment:
   backported from main/4.0
   
   change for 4.0 will just be to have ssh_wait called at the end of 
control_services()



-- 
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.

To unsubscribe, e-mail: notifications-unsubscr...@accumulo.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to