Replies: 1 comment
-
So yeah this worked with Play 2.8 but now your code deadlocks in Play 2.9 and 3.0... In your case, the call to So thinking about it, I am reluctant to revert this change, because, like said, it's meant to speed up things (and question would be which thread pool should we use? why should we revert the use of trampline here but not somewhere else? -> which makes me think that using Morever, looking at your code I would argue your use of Actually you already solved the problem yourself in You do have to refactor your code a bit and in general avoid blocking with calls to |
Beta Was this translation helpful? Give feedback.
-
Hi,
I've problem with PF v2.9.x/v3.x + async caffeine cache + CompletableFuture.join() work together.
The sample code:
The problem is that getting value from cache, if set earlier, hangs "forever" (the println is never printed).
However if the value is not set or removed - it doesn't hang.
I've tried this: https://www.playframework.com/documentation/2.9.x/JavaCache#Setting-the-execution-context but with no success:
What's maybe can be also interesting that it works perfect with ehcache.
The code also worked in PF v2.8.x.
Moreover, this code works:
but my real problem is that I have quite big project already (from v2.8) and there is many .join() nested calls
so I can't refactor the project easily :(
Is there any chance I can make the code works?
This is some bug in PF/caffeine or I set something wrong or maybe .join() in PF does not work with caffeine anymore...?
Beta Was this translation helpful? Give feedback.
All reactions