{"action":"closed","issue":{"url":"https://api.github.com/repos/xetorthio/jedis/issues/556","labels_url":"https://api.github.com/repos/xetorthio/jedis/issues/556/labels{/name}","comments_url":"https://api.github.com/repos/xetorthio/jedis/issues/556/comments","events_url":"https://api.github.com/repos/xetorthio/jedis/issues/556/events","html_url":"https://github.com/xetorthio/jedis/issues/556","id":27849585,"number":556,"title":"ReturnResource throws IllegalStateException once in a while","user":{"login":"AH22","id":6723145,"avatar_url":"https://avatars.githubusercontent.com/u/6723145?v=3","gravatar_id":"","url":"https://api.github.com/users/AH22","html_url":"https://github.com/AH22","followers_url":"https://api.github.com/users/AH22/followers","following_url":"https://api.github.com/users/AH22/following{/other_user}","gists_url":"https://api.github.com/users/AH22/gists{/gist_id}","starred_url":"https://api.github.com/users/AH22/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AH22/subscriptions","organizations_url":"https://api.github.com/users/AH22/orgs","repos_url":"https://api.github.com/users/AH22/repos","events_url":"https://api.github.com/users/AH22/events{/privacy}","received_events_url":"https://api.github.com/users/AH22/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2014-02-19T04:08:35Z","updated_at":"2015-05-25T04:54:18Z","closed_at":"2015-05-25T04:54:18Z","body":"Hi,\r\n\r\nI am running my application with jedis1.4.0 and once in a while I see the following exception. Why do I see this and are there any known issues or workarounds ? \r\n\r\nredis.clients.jedis.exceptions.JedisException: Could not return the resource to the pool\r\n                redis.clients.util.Pool.returnResourceObject(Pool.java:51)\r\n                redis.clients.util.Pool.returnResource(Pool.java:61)\r\n                ....\r\nroot cause: java.lang.IllegalStateException: Returned object not currently part of this pool\r\n                org.apache.commons.pool2.impl.GenericObjectPool.returnObject(GenericObjectPool.java:534)\r\n                redis.clients.util.Pool.returnResourceObject(Pool.java:49)\r\n                redis.clients.util.Pool.returnResource(Pool.java:61)\r\n                 .........\r\n\r\nThanks\r\nAH"}}