BoxLang: Our new JVM Dynamic Language made by Ortus! Check it out: https://www.boxlang.io

Issues

Select view

Select search mode

 
50 of 61

RedisLock not returning connections to the pool

Description

When using the redisLock to create a distributed lock, new connections are created every time the lock is hit, eventually hitting maxConnections and throwing an error

To reproduce, set maxConnections to a small number, then create a page with redisLock, hit the page more than maxConnections and you will get a stack trace

lucee.runtime.exp.NativeException: Could not get a resource from the pool at redis.clients.jedis.util.Pool.getResource(Pool.java:42) at redis.clients.jedis.JedisPool.getResource(JedisPool.java:378) at ortus.extension.cache.redis.lock.DistributedLock.doStartTag(DistributedLock.java:163) at dean_cfm$cf.__luceedebug__call(/app/www/dean.cfm:8)

Environment

None
Pinned fields
Click on the next to a field label to start pinning.

Details

Assignee

Reporter

Priority

Sentry

Created December 1, 2024 at 10:04 PM
Updated December 2, 2024 at 9:17 AM

Activity

Show:

Flag notifications