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
version and data use separate mutexes. In most cases, either only one is used, or the data mutex is held for the duration of the version mutex. However, reset releases data before grabbing version, which can lead version to be reverted if single_watch (via poll) applies an update in between the two locks.
The practical effect of this would be that poll() restarts can get duplicate events (though they would just be no-ops).
The text was updated successfully, but these errors were encountered:
Thanks! Yep, this looks wrong. And it also doesn't look like there are any good reasons anymore to need two mutexes, so we should just combine their use.
nightkr
added a commit
to Appva/kube-rs
that referenced
this issue
Feb 20, 2020
version
anddata
use separate mutexes. In most cases, either only one is used, or thedata
mutex is held for the duration of theversion
mutex. However,reset
releasesdata
before grabbingversion
, which can leadversion
to be reverted ifsingle_watch
(viapoll
) applies an update in between the two locks.The practical effect of this would be that
poll()
restarts can get duplicate events (though they would just be no-ops).The text was updated successfully, but these errors were encountered: