{"action":"created","issue":{"url":"https://api.github.com/repos/xetorthio/jedis/issues/1374","repository_url":"https://api.github.com/repos/xetorthio/jedis","labels_url":"https://api.github.com/repos/xetorthio/jedis/issues/1374/labels{/name}","comments_url":"https://api.github.com/repos/xetorthio/jedis/issues/1374/comments","events_url":"https://api.github.com/repos/xetorthio/jedis/issues/1374/events","html_url":"https://github.com/xetorthio/jedis/issues/1374","id":173100531,"number":1374,"title":"JedisCluster can't get a resource","user":{"login":"WonMe","id":18180387,"avatar_url":"https://avatars0.githubusercontent.com/u/18180387?v=4","gravatar_id":"","url":"https://api.github.com/users/WonMe","html_url":"https://github.com/WonMe","followers_url":"https://api.github.com/users/WonMe/followers","following_url":"https://api.github.com/users/WonMe/following{/other_user}","gists_url":"https://api.github.com/users/WonMe/gists{/gist_id}","starred_url":"https://api.github.com/users/WonMe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WonMe/subscriptions","organizations_url":"https://api.github.com/users/WonMe/orgs","repos_url":"https://api.github.com/users/WonMe/repos","events_url":"https://api.github.com/users/WonMe/events{/privacy}","received_events_url":"https://api.github.com/users/WonMe/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2016-08-25T02:27:24Z","updated_at":"2018-05-04T07:54:59Z","closed_at":"2016-08-25T02:52:13Z","author_association":"NONE","body":"### Expected behavior\n\nI create a JedisCluster instance,it's ok ,but when i try to use it to get a key from redis server,it throw a exception ：\nredis.clients.jedis.exceptions.JedisConnectionException: Could not get a resource from the pool\n    at redis.clients.util.Pool.getResource(Pool.java:53)\n    at redis.clients.jedis.JedisPool.getResource(JedisPool.java:226)\n    at redis.clients.jedis.JedisSlotBasedConnectionHandler.getConnectionFromSlot(JedisSlotBasedConnectionHandler.java:66)\n    at redis.clients.jedis.JedisClusterCommand.runWithRetries(JedisClusterCommand.java:116)\n    at redis.clients.jedis.JedisClusterCommand.runWithRetries(JedisClusterCommand.java:141)\n    at redis.clients.jedis.JedisClusterCommand.runWithRetries(JedisClusterCommand.java:141)\n    at redis.clients.jedis.JedisClusterCommand.runWithRetries(JedisClusterCommand.java:141)\n    at redis.clients.jedis.JedisClusterCommand.runWithRetries(JedisClusterCommand.java:141)\n    at redis.clients.jedis.JedisClusterCommand.run(JedisClusterCommand.java:31)\n    at redis.clients.jedis.JedisCluster.get(JedisCluster.java:124)\n    at xiwan.RedisCluster.get(RedisCluster.java:104)\n    at xiwan.RedisCluster.main(RedisCluster.java:120)\n    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\n    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)\n    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\n    at java.lang.reflect.Method.invoke(Method.java:498)\n    at com.intellij.rt.execution.application.AppMain.main(AppMain.java:147)\nCaused by: redis.clients.jedis.exceptions.JedisConnectionException: java.net.ConnectException: Connection refused: connect\n    at redis.clients.jedis.Connection.connect(Connection.java:207)\n    at redis.clients.jedis.BinaryClient.connect(BinaryClient.java:93)\n    at redis.clients.jedis.BinaryJedis.connect(BinaryJedis.java:1767)\n    at redis.clients.jedis.JedisFactory.makeObject(JedisFactory.java:106)\n    at org.apache.commons.pool2.impl.GenericObjectPool.create(GenericObjectPool.java:868)\n    at org.apache.commons.pool2.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:435)\n    at org.apache.commons.pool2.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:363)\n    at redis.clients.util.Pool.getResource(Pool.java:49)\n    ... 16 more\nCaused by: java.net.ConnectException: Connection refused: connect\n    at java.net.DualStackPlainSocketImpl.waitForConnect(Native Method)\n    at java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:85)\n    at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)\n    at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)\n    at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)\n    at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:172)\n    at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)\n    at java.net.Socket.connect(Socket.java:589)\n    at redis.clients.jedis.Connection.connect(Connection.java:184)\n    ... 23 more\n### Actual behavior\n\nWrite here what happens instead ...\n### Steps to reproduce:\n\nPlease create a reproducible case of your problem. Make sure\nthat case repeats consistently and it's not random\n1.\n2.\n3.\n### Redis / Jedis Configuration\n#### Jedis version:\n\n2.9.0\n#### Redis version:\n\n3.2.3\n#### Java version:\n\n1.8\n"},"comment":{"url":"https://api.github.com/repos/xetorthio/jedis/issues/comments/386529646","html_url":"https://github.com/xetorthio/jedis/issues/1374#issuecomment-386529646","issue_url":"https://api.github.com/repos/xetorthio/jedis/issues/1374","id":386529646,"user":{"login":"lkxlaz","id":17043553,"avatar_url":"https://avatars3.githubusercontent.com/u/17043553?v=4","gravatar_id":"","url":"https://api.github.com/users/lkxlaz","html_url":"https://github.com/lkxlaz","followers_url":"https://api.github.com/users/lkxlaz/followers","following_url":"https://api.github.com/users/lkxlaz/following{/other_user}","gists_url":"https://api.github.com/users/lkxlaz/gists{/gist_id}","starred_url":"https://api.github.com/users/lkxlaz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lkxlaz/subscriptions","organizations_url":"https://api.github.com/users/lkxlaz/orgs","repos_url":"https://api.github.com/users/lkxlaz/repos","events_url":"https://api.github.com/users/lkxlaz/events{/privacy}","received_events_url":"https://api.github.com/users/lkxlaz/received_events","type":"User","site_admin":false},"created_at":"2018-05-04T07:54:59Z","updated_at":"2018-05-04T07:54:59Z","author_association":"NONE","body":"@amitkumar912 Thanks! You saved my life bro!"}}
{"actor":{"display_login":"lkxlaz"}}