-
Notifications
You must be signed in to change notification settings - Fork 6.1k
Closed
Labels
sig/plannerSIG: PlannerSIG: Plannertype/enhancementThe issue or PR belongs to an enhancement.The issue or PR belongs to an enhancement.
Description
Enhancement
updateStatsWorker periodically calls (*Handle).DumpStatsDeltaToKV and (*Handle).UpdateStatsByLocalFeedback and the both functions calls (*Handle).sweepList. In another word, (*Handle).sweepList may be concurrently called by different callers. (*Handle).sweepList calls (*Handle).merge, which writes Handle.globalMap and Handle.feedback without acquiring lock. Hence data race may occur. Maybe we should prevent concurrently writing Handle.globalMap and Handle.feedback.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
sig/plannerSIG: PlannerSIG: Plannertype/enhancementThe issue or PR belongs to an enhancement.The issue or PR belongs to an enhancement.