Github user squito commented on a diff in the pull request:

    https://github.com/apache/spark/pull/20925#discussion_r179987409
  
    --- Diff: 
launcher/src/main/java/org/apache/spark/launcher/SparkSubmitCommandBuilder.java 
---
    @@ -154,9 +165,17 @@
     
       List<String> buildSparkSubmitArgs() {
         List<String> args = new ArrayList<>();
    -    SparkSubmitOptionParser parser = new SparkSubmitOptionParser();
    +    OptionParser parser = new OptionParser(false);
    +    boolean isStartingApp = isAppResourceReq;
    +
    +    // If the user args array is not empty, we need to parse it to detect 
exactly what
    +    // the user is trying to run, so that checks below are correct.
    +    if (!userArgs.isEmpty()) {
    +      parser.parse(userArgs);
    +      isStartingApp = parser.isAppResourceReq;
    --- End diff --
    
    I don't really care whether the name is `isStartingApp` or 
`isAppResourceReq`, but seems the name should be same here and in OptionParser, 
unless there is some difference I'm missing.


---

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

Reply via email to