This is an automated email from the ASF dual-hosted git repository.

payang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/yunikorn-core.git


The following commit(s) were added to refs/heads/master by this push:
     new 6776ecde [YUNIKORN-2120] Fix incorrect error message when check 
maxApplications in configValidator (#693)
6776ecde is described below

commit 6776ecde868d8f770f8ed81c42b8c8abfa434272
Author: brandboat <[email protected]>
AuthorDate: Fri Nov 3 23:17:27 2023 +0800

    [YUNIKORN-2120] Fix incorrect error message when check maxApplications in 
configValidator (#693)
    
    Closes: #693
    
    Signed-off-by: PoAn Yang <[email protected]>
---
 pkg/common/configs/configvalidator.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pkg/common/configs/configvalidator.go 
b/pkg/common/configs/configvalidator.go
index 4065cf86..c1eaaf70 100644
--- a/pkg/common/configs/configvalidator.go
+++ b/pkg/common/configs/configvalidator.go
@@ -213,7 +213,7 @@ func checkQueueMaxApplications(cur QueueConfig) error {
        var err error
        for _, child := range cur.Queues {
                if cur.MaxApplications != 0 && (cur.MaxApplications < 
child.MaxApplications || child.MaxApplications == 0) {
-                       return fmt.Errorf("parent maxRunningApps must be larger 
than child maxRunningApps")
+                       return fmt.Errorf("parent maxApplications must be 
larger than child maxApplications")
                }
                err = checkQueueMaxApplications(child)
                if err != nil {


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to