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

JedisConnectionException: Could not get a resource from the pool #173

Open
shannonantony opened this issue Dec 2, 2021 · 1 comment
Open

Comments

@shannonantony
Copy link

Hi,

I am loading around 1million record into RediSearch. During the data load, I get following exception,

redis.clients.jedis.exceptions.JedisConnectionException: Could not get a resource from the pool
at redis.clients.jedis.util.Pool.getResource(Pool.java:84)
at redis.clients.jedis.JedisSentinelPool.getResource(JedisSentinelPool.java:310)
at redis.clients.jedis.JedisSentinelPool.getResource(JedisSentinelPool.java:17)
at io.redisearch.client.Client.connection(Client.java:144)
at com.altice.searchcloud.service.MetaDataCacheLoadService.loadMetaDataRedis(MetaDataCacheLoadService.java:134)
at com.altice.searchcloud.service.MetaDataCacheLoadService.loadChunk(MetaDataCacheLoadService.java:111)
at com.altice.searchcloud.service.MetaDataCacheLoadService.lambda$loadEventMetadata$1(MetaDataCacheLoadService.java:101)
at com.altice.searchcloud.service.DbLoadService$2.call(DbLoadService.java:67)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:834)
Caused by: redis.clients.jedis.exceptions.JedisConnectionException: Failed to create socket.

PLease let me know what should I do to resolve this issue

Appreciate your help

thanks

Jason

@sazzad16
Copy link
Collaborator

sazzad16 commented Dec 5, 2021

@shannonantony Please check (and focus) on Failed to create socket. There seems to be some issues when creating the connections. And given information is not enough even to guess.

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

2 participants