with_advisory_lock icon indicating copy to clipboard operation
with_advisory_lock copied to clipboard

Advisory locking for ActiveRecord

Results 24 with_advisory_lock issues
Sort by recently updated
recently updated
newest added

This issue was originally posted on Stack Overflow. [Stack Overflow]. (https://stackoverflow.com/questions/56146171/ruby-with-advisory-lock-test-with-multiple-threads-fails-intermittently) Summary of the issue is that rails tests which create multiple threads then try to call an operation which...

During testing I found that (at least in my set up), ActiveRecord was re-using connections in which advisory locks were held, so when trying to lock on one again, even...

I explained this issue in depth in #47. The short version is that ActiveRecord caching can lead to stale query results within an advisory lock, at a time when it's...

I know that this is documented behaviour but it trips me over every time when i use this gem. I think it would be more sensible to raise an error...

Hey there -- thanks for providing this gem. Is there a reason you chose to always provide a timeout of 0 within the MySQL driver rather than pass the thread...

enhancement
PR welcome

It looks like the code was added 7 years ago, so I could easily believe that it is fixed.

It's not a bug although it might be a good place to ask, at least the answer might be an interesting section in Readme ;). We've been using advisory locks...

I believe `select get_version()` gets called on every lock - is that necessary? https://github.com/ClosureTree/with_advisory_lock/blob/478059f8c436702217108e4136e96b7cd8f16080/lib/with_advisory_lock/database_adapter_support.rb#L24

Hi! first off, thanks for the attention and for for the gem. Rails: 5.0.0 psql (PostgreSQL) 10.3 (Debian 10.3-1.pgdg90+1) My rails server is run inside a docker container with ```...

I've had a good rummage through the code, and am pretty sure things aren't wired up this way, but I wondered if it's possible to kick off a lock with...