werf / lockgate

Lockgate is a cross-platform distributed locking library for Go. Supports distributed locks backed by Kubernetes or HTTP lock server. Supports conventional OS file locks.
Apache License 2.0
256 stars 15 forks source link

Try-lock for file-locks may not working properly #13

Open distorhead opened 4 years ago

distorhead commented 4 years ago

Multiple calls to try-lock from multiple goroutines results in exclusive locks being taken in multiple goroutines simultaneously.

Steps to reproduce needed.