pbacsko opened a new pull request, #925: URL: https://github.com/apache/yunikorn-core/pull/925
### What is this PR for? There is a data race in the unit tests due to `TestGetStream_Limit` because it starts handler functions on different goroutines. Since `schedulerContext` is a global variable, it needs to be accessed safely. **Note**: a better solution would be to elimiate global package variables and handler functions (eg handlers should be tied to an instance), but that's a much bigger change. This is OK until the refactor is done. ### 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-2681 ### 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]
