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

   ### What is this PR for?
   Moved async dispatch settings and asyncDispatchCount from package variables 
into the Dispatcher struct, and have createDispatcher() stop and drain in 
flight async goroutines before reinitialisation. This prevents tests from 
racing on shared state.
   
   Verified 'go test ./pkg/dispatcher/... -race -count=10  > shim-race.txt'.
   
   
   ### What type of PR is it?
   
   * [x] - Bug Fix
   * [ ] - Improvement
   * [ ] - Feature
   * [ ] - Documentation
   * [ ] - Hot Fix
   * [ ] - Refactoring
   
   ### Todos
   
   * [ ] - Task
   
   ### What is the Jira issue?
   
   [YUNIKORN-2576](https://issues.apache.org/jira/browse/YUNIKORN-2576) 
   
   ### How should this be tested?
   
   'go test ./pkg/dispatcher/... -race -count=10  > shim-race.txt'
   
   ### Screenshots (if appropriate)
   
   <img width="1009" height="246" alt="Screenshot 2026-05-29 at 7 47 10 PM" 
src="https://github.com/user-attachments/assets/230b46c5-e7e6-49db-adff-b4b58d14ddc3";
 />
   
   ### 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