craigcondit opened a new pull request, #570:
URL: https://github.com/apache/yunikorn-k8shim/pull/570

   
   ### What is this PR for?
   Fixes a race condition in scheduler initialization where one of the 
ConfigMaps (yunikorn-defaults or yunikorn-configs) may be ignored.
   
   The root cause is a race condition on startup where the initial configmaps 
are used to configure YuniKorn, but are not cached in the context. Then, 
depending on which configmap gets added first, the other may be forgotten and 
ignored during config refresh. Additionally locking was added to the reload 
code path to ensure that if both configmaps are updated in quick succession, we 
serialize the updates.
   
   ### 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-1684
   
   ### How should this be tested?
   This is difficult to reproduce, but e2e tests should be more reliable. 
   
   ### 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]

Reply via email to