You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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 writesHandle.globalMap
andHandle.feedback
without acquiring lock. Hence data race may occur. Maybe we should prevent concurrently writingHandle.globalMap
andHandle.feedback
.The text was updated successfully, but these errors were encountered: