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
when I'm running controller specs that invoke this part of code, they fail and the exception is that there are no users on the database anymore. I tracked the issue down to DC doing a clean-up.
It looks like DC is running even though Futures are not finished yet. I can't say that this is an issue with DC but I figure that this could be a starting point
Edit: I noticed that changing the strategy from transaction to deletion or truncation worked but the tests got SO much slower that it's not even an option
The text was updated successfully, but these errors were encountered:
@jlurena I didn't solve it. I'm no longer working at the company where I had this issue but back then, what I did was avoid database connections inside threads so I mocked anything that would trigger a connection. Later, I created a gem that handles the conversation between Threads and Rails and also added a helper for testing (ConcurrentRails::Testing.fake!) that, when set up, does not run the given code on a separate thread
This one is hard to reproduce, might not have anything to do with DC but I tracked the issue down to the DC configuration/behavior.
I have a code that runs a couple of operations on threads, using
concurrent-ruby
'sFuture
. It goes along these lines:when I'm running controller specs that invoke this part of code, they fail and the exception is that there are no users on the database anymore. I tracked the issue down to DC doing a clean-up.
It looks like DC is running even though
Future
s are not finished yet. I can't say that this is an issue with DC but I figure that this could be a starting pointHere is my whole config file
Does this make any sense?
Edit: I noticed that changing the strategy from
transaction
todeletion
ortruncation
worked but the tests got SO much slower that it's not even an optionThe text was updated successfully, but these errors were encountered: