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
Current implementation of store uses filesystem for storage api.Machine objects. We are using mutex for avoid of race condition during modified api.Machine. But we don't have any protection between running multiple instances of libvirt-provider.
It can create race condition during upgrade of libvirt-provider, when multiple instances of libvirt-provider run simultaneously.
Problem description
Current implementation of store uses filesystem for storage api.Machine objects. We are using mutex for avoid of race condition during modified api.Machine. But we don't have any protection between running multiple instances of libvirt-provider.
It can create race condition during upgrade of libvirt-provider, when multiple instances of libvirt-provider run simultaneously.
I think we need to fix this special case. One of possible solution is use lock base on file (same logic as flock). Maybe: https://pkg.go.dev/github.com/theckman/go-flock
What do you think?
The text was updated successfully, but these errors were encountered: