Github user cloud-fan commented on a diff in the pull request:

    https://github.com/apache/spark/pull/22854#discussion_r228588061
  
    --- Diff: build/mvn ---
    @@ -163,8 +163,19 @@ export MAVEN_OPTS=${MAVEN_OPTS:-"$_COMPILE_JVM_OPTS"}
     
     echo "Using \`mvn\` from path: $MVN_BIN" 1>&2
     
    -# Last, call the `mvn` command as usual
    +# call the `mvn` command as usual
     "${MVN_BIN}" -DzincPort=${ZINC_PORT} "$@"
     
    -# Try to shut down zinc explicitly
    -"${ZINC_BIN}" -shutdown -port ${ZINC_PORT}
    +# check to see if zinc server is still running post-build
    +"${ZINC_BIN}" -status -port ${ZINC_PORT} &> /dev/null
    +ZINC_STATUS=$?
    +
    +# Try to shut down zinc explicitly if the server is still running
    --- End diff --
    
    I know it's very unlikely, but there is a chance that the zinc is timed out 
between we check its status and shut it down. Since zinc will be timed out 
eventually, we don't care too much about if we can shut it down successfully 
here.
    
    So how about `"${ZINC_BIN}" -shutdown -port ${ZINC_PORT} || true`?


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to