pbacsko commented on a change in pull request #395:
URL: https://github.com/apache/yunikorn-core/pull/395#discussion_r835664168
##########
File path: pkg/scheduler/context.go
##########
@@ -918,3 +921,11 @@ func (cc *ClusterContext) SetRMInfo(rmID string,
rmBuildInformation map[string]s
RMBuildInformation: buildInfo,
}
}
+
+func (cc *ClusterContext) GetHealthCheckCache() *dao.SchedulerHealthDAOInfo {
+ return cc.healthCheckCache
+}
+
+func (cc *ClusterContext) SetHealthCheckCache(c *dao.SchedulerHealthDAOInfo) {
+ cc.healthCheckCache = c
+}
Review comment:
These methods are invoked from different goroutines. Add the necessary
`RLock()` and `RUnlock()` calls.
--
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]