We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ac1d4d3 commit e3584d6Copy full SHA for e3584d6
operator/src/main/resources/scripts/startNodeManager.sh
@@ -333,7 +333,10 @@ start_secs=$SECONDS
333
max_wait_secs=${NODE_MANAGER_MAX_WAIT:-60}
334
while [ 1 -eq 1 ]; do
335
sleep 1
336
- if [ -e ${nodemgr_log_file} ] && [ `grep -c "Plain socket listener started" ${nodemgr_log_file}` -gt 0 ]; then
+ # Test if node manager listen port is reachable
337
+ $(timeout 1 bash -c 'cat < /dev/null > /dev/tcp/127.0.0.1/5556' > /dev/null 2>&1)
338
+ res="$?"
339
+ if [ $res -eq 0 ]; then
340
break
341
fi
342
if [ $((SECONDS - $start_secs)) -ge $max_wait_secs ]; then
0 commit comments