Wilfred Spiegelenburg created YUNIKORN-2482:
-----------------------------------------------

             Summary: Failure to set template does not return error
                 Key: YUNIKORN-2482
                 URL: https://issues.apache.org/jira/browse/YUNIKORN-2482
             Project: Apache YuniKorn
          Issue Type: Bug
          Components: core - scheduler
            Reporter: Wilfred Spiegelenburg


The update of setting a template on a parent could fail if the template is not 
correct. The error is swallowed and a success is returned but the update of the 
queue has not finished correctly:
*Queue.applyConf()
{code:java}
if !sq.isLeaf {
    if err = sq.setTemplate(conf.ChildTemplate); err != nil {
       return nil
    }
} {code}
Need to add tests to make sure we do not regress.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

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

Reply via email to