adamantal commented on a change in pull request #96: [YUNIKORN-72] data race in 
unit test: TestTaskStateTransitions
URL: 
https://github.com/apache/incubator-yunikorn-k8shim/pull/96#discussion_r403920517
 
 

 ##########
 File path: pkg/conf/schedulerconf.go
 ##########
 @@ -68,12 +70,12 @@ type SchedulerConf struct {
 }
 
 func GetSchedulerConf() *SchedulerConf {
-       return configuration
+       return (*SchedulerConf)(atomic.LoadPointer(&pointer))
 }
 
 // unit tests may need to override configuration
 
 Review comment:
   The comment should be modified, because not only the tests use this function 
anymore.

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to