zhuqi-lucas commented on code in PR #525:
URL: https://github.com/apache/yunikorn-core/pull/525#discussion_r1164034040


##########
pkg/common/configs/configvalidator.go:
##########
@@ -316,34 +321,46 @@ func checkLimit(limit Limit, currIdx int, 
userWildCardIdx, groupWildCardIdx *int
                if name != "*" && !UserRegExp.MatchString(name) {
                        return fmt.Errorf("invalid limit user name '%s' in 
limit definition", name)
                }
+
+               if limitValidator.existedUserName[name] {
+                       return fmt.Errorf("duplicated user name %s , already 
existed", name)
+               }
+               limitValidator.existedUserName[name] = true

Review Comment:
   Thank you for this good suggestion, addressed in latest PR!



-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to