rmetzger commented on a change in pull request #14033:
URL: https://github.com/apache/flink/pull/14033#discussion_r523152338



##########
File path: flink-end-to-end-tests/test-scripts/test-runner-common.sh
##########
@@ -110,10 +114,40 @@ function post_test_validation {
     fi
 }
 
+# returns the number of allocated ports
+function get_num_ports {
+    # "ps --ppid 2 -p 2 --deselect" shows all non-kernel processes
+    # "ps --ppid $$" shows all children of this bash process
+    # "ps -o pid= -o comm=" removes the header line
+    echo $(sudo netstat -tulpn | wc -l)

Review comment:
       afaik the tests are run by `vsts` user on Azure. I just want to be sure 
that we are catching all ports




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


Reply via email to