craigcondit opened a new pull request, #932: URL: https://github.com/apache/yunikorn-core/pull/932
### What is this PR for? Split Node.AddAllocation() into two functions, one which forces the allocation and a new Node.TryAddAllocation() function which behaves as before. Update callers to use the appropriate function depending on context. This already exposed some issues in existing unit tests which assumed allocations succeeded, and test results changed once those were validated properly. ### What type of PR is it? * [x] - Bug Fix * [ ] - Improvement * [ ] - Feature * [ ] - Documentation * [ ] - Hot Fix * [ ] - Refactoring ### Todos * [ ] - Task ### What is the Jira issue? https://issues.apache.org/jira/browse/YUNIKORN-2788 ### How should this be tested? ### Screenshots (if appropriate) ### Questions: * [ ] - The licenses files need update. * [ ] - There is breaking changes for older versions. * [ ] - It needs documentation. -- 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]
