Title:
ColdFusion Runtime's implementation of WeakHashMap generates infinite loop when there is a high number of concurrent requests to a cached resource
| View in TrackerStatus/Resolution/Reason: Closed/Withdrawn/
Reporter/Name(from Bugbase): A. B. / ()
Created: 11/13/2019
Components: Caching, Distributed Caching
Versions: 2018
Failure Type:
Found In Build/Fixed In Build: 2018.0.05.315699 /
Priority/Frequency: Normal /
Locale/System: / Win All
Vote Count: 0
Problem Description: Terracotta distributed cache is being used together with Ehcache. When, in a given ColdFusion instance, there is a high number of concurrent requests to a cached resource, an infinite loop usually occurs. Some requests to cache run perpetually. The CPU always increases to 100% eventually.
Steps to Reproduce:
Configure your application for distributed cache with Ehcache. Set request timeout to 120 seconds.
Emulate the cache functions in the attached CFCs.
Subject calls to the cache functions with a high number of concurrent requests.
Actual Result: You will have periods when some requests to cache functions run perpetually, irrespective of your timeout setting. Also, your instance's CPU will then rise to 100%.
Expected Result:
No infinite loops or CPU increase
Any Workarounds:
Not applicable
Attachments:
Comments: