Closed cwli24 closed 2 years ago
Actually this may be(?) related to an issue with the cache; just the trace has a poor way of showing it. I tried using the native Thread class via replacing Promise.execute with Thread.new and fetch_requests.each(&:join)
, and it's also failing on the fetch return, saving data to the cache. I'm suspicious the cache might just not like storing http responses..
I'm fairly certain the root of this is actually caused by what's being stored into the cache, and subsequently this problem. I'm going to close this issue, and link the one I opened on Rails' github.
This is causing the same crash from the server. I tried using :file_store as cache rather than :memory_store (which was made 'thread-safe' by Rails anyways), and also using ReentrantReadWrite lock to gate the cache, but no success. This is what's showing: