Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Redis InterruptedException connection pool error #70

Open
mbarreda opened this issue Jun 2, 2016 · 0 comments
Open

Redis InterruptedException connection pool error #70

mbarreda opened this issue Jun 2, 2016 · 0 comments

Comments

@mbarreda
Copy link

mbarreda commented Jun 2, 2016

Getting the following exception: redis.clients.jedis.exceptions.JedisConnectionException: Could not get a resource from the pool

The error is not a connection refused or max clients error, but is caused by: java.lang.InterruptedException

2016-05-23 11:53:01,272 [http-thread-pool-28080(2)] ERROR org.codehaus.groovy.grails.web.servlet.GrailsDispatcherServlet - HandlerInterceptor.afterCompletion threw exception
redis.clients.jedis.exceptions.JedisConnectionException: Could not get a resource from the pool
at redis.clients.util.Pool.getResource(Pool.java:50)
at redis.clients.jedis.JedisSentinelPool.getResource(JedisSentinelPool.java:180)
at grails.plugin.redis.RedisService.withRedis(RedisService.groovy:99)
at grails.plugin.redissession.RedisPersistentService.isValid(RedisPersistentService.groovy:225)
at grails.plugin.databasesession.SessionProxyFilter.proxySession(SessionProxyFilter.java:91)
at grails.plugin.databasesession.SessionProxyFilter$1.getSession(SessionProxyFilter.java:49)
at grails.plugin.databasesession.SessionProxyFilter$1.getSession(SessionProxyFilter.java:54)
at grails.plugin.databasesession.SessionFilters$_closure1_closure2_closure3.doCall(SessionFilters.groovy:23)
at grails.plugin.cache.web.filter.PageFragmentCachingFilter.doFilter(PageFragmentCachingFilter.java:200)
at grails.plugin.cache.web.filter.AbstractFilter.doFilter(AbstractFilter.java:63)
at security.RealmSwitchUserFilter.doFilter(RealmSwitchUserFilter.groovy:116)
at grails.plugin.databasesession.SessionProxyFilter.doFilterInternal(SessionProxyFilter.java:62)
at com.sun.enterprise.v3.services.impl.ContainerMapper$AdapterCallable.call(ContainerMapper.java:317)
at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:195)
at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:860)
at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:757)
at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1056)
at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:229)
at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:137)
at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:104)
at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:90)
at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:79)
at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:54)
at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:59)
at com.sun.grizzly.ContextTask.run(ContextTask.java:71)
at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:532)
at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:513)
at java.lang.Thread.run(Thread.java:724)
Caused by: java.lang.InterruptedException
at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.reportInterruptAfterWait(AbstractQueuedSynchronizer.java:2017)
at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2052)
at org.apache.commons.pool2.impl.LinkedBlockingDeque.takeFirst(LinkedBlockingDeque.java:583)
at org.apache.commons.pool2.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:442)
at org.apache.commons.pool2.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:363)
at redis.clients.util.Pool.getResource(Pool.java:48)

Redis version is 2.8.19. Any help is appreciated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant