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
I recently encountered the same production problems as this #2774. All threads are waiting for the load operation to complete, but the thread that performed the load operation could not be found. I don't want to discuss the reasons for this problem, I just want to solve this problem from the framework. I think the load operation should have a timeout, and the operation waiting for the load to complete should also have a timeout. This will ensure that my application will not die in extreme situations.I can provide a thread snapshot if you need it.
The text was updated successfully, but these errors were encountered:
I think a future-based cache might make more sense in this case. This would allow you to set a timeout either when producing the future (e.g. by the cache loader) or when consuming by copying the source. CompletableFuture added this type of chaining in JDK9. This is how you could resolve this issue in Caffeine, using its AsyncLoadingCache. I think that is a better place to put the responsibility rather than in the cache itself.
I recently encountered the same production problems as this #2774. All threads are waiting for the load operation to complete, but the thread that performed the load operation could not be found. I don't want to discuss the reasons for this problem, I just want to solve this problem from the framework. I think the load operation should have a timeout, and the operation waiting for the load to complete should also have a timeout. This will ensure that my application will not die in extreme situations.I can provide a thread snapshot if you need it.
The text was updated successfully, but these errors were encountered: