{"action":"opened","issue":{"url":"https://api.github.com/repos/basho/riak-java-client/issues/542","labels_url":"https://api.github.com/repos/basho/riak-java-client/issues/542/labels{/name}","comments_url":"https://api.github.com/repos/basho/riak-java-client/issues/542/comments","events_url":"https://api.github.com/repos/basho/riak-java-client/issues/542/events","html_url":"https://github.com/basho/riak-java-client/issues/542","id":103767905,"number":542,"title":"AcquireConnectionTimeoutException breaking connection pool","user":{"login":"submitteddenied","id":143992,"avatar_url":"https://avatars.githubusercontent.com/u/143992?v=3","gravatar_id":"","url":"https://api.github.com/users/submitteddenied","html_url":"https://github.com/submitteddenied","followers_url":"https://api.github.com/users/submitteddenied/followers","following_url":"https://api.github.com/users/submitteddenied/following{/other_user}","gists_url":"https://api.github.com/users/submitteddenied/gists{/gist_id}","starred_url":"https://api.github.com/users/submitteddenied/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/submitteddenied/subscriptions","organizations_url":"https://api.github.com/users/submitteddenied/orgs","repos_url":"https://api.github.com/users/submitteddenied/repos","events_url":"https://api.github.com/users/submitteddenied/events{/privacy}","received_events_url":"https://api.github.com/users/submitteddenied/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-08-28T18:04:04Z","updated_at":"2015-08-28T18:04:04Z","closed_at":null,"body":"Hi all,\r\n\r\nI am running and App with riak-client 1.4.4 and after approximately a week of running, the RiakConnectionPool appears to lose its ability to create new connections to the Riak cluster. In all cases, restarting the java process resolves the issue.\r\n\r\nI poked around in the code a bit, but I can't see anything in the Riak Client that would be causing this, unless there were some socket connections that didn't get garbage collected and are preventing new connections from being made. Is there something on the Riak Server side that might be causing this?\r\n\r\nClient:\r\nriak-client:1.4.4\r\n\r\nServer:\r\nriak.x86_64:2.1.1-1\r\n\r\nStack trace:\r\n```\r\nERROR [2015-08-28 17:04:18,313] com.riotgames.highlander.resources.tournament.TournamentDAO: Riak exception thrown:\r\n! com.basho.riak.client.RiakRetryFailedException: com.basho.riak.pbc.AcquireConnectionTimeoutException: timeout from \r\nsocket connection connect timed out\r\n! at com.basho.riak.client.cap.DefaultRetrier.attempt(DefaultRetrier.java:79) ~[my_api.jar:na]\r\n! at com.basho.riak.client.cap.DefaultRetrier.attempt(DefaultRetrier.java:81) ~[my_api.jar:na]\r\n! at com.basho.riak.client.cap.DefaultRetrier.attempt(DefaultRetrier.java:81) ~[my_api.jar:na]\r\n! at com.basho.riak.client.cap.DefaultRetrier.attempt(DefaultRetrier.java:81) ~[my_api.jar:na]\r\n! at com.basho.riak.client.cap.DefaultRetrier.attempt(DefaultRetrier.java:53) ~[my_api.jar:na]\r\n! at com.basho.riak.client.bucket.FetchBucket.execute(FetchBucket.java:72) ~[my_api.jar:na]\r\n! at com.riotgames.my_api.riak.RiakObjectStore.getKeysByIndex(RiakObjectStore.java:78) ~[my_api.jar:na]\r\n<-- snip app stuff -->\r\nCaused by: ! com.basho.riak.pbc.AcquireConnectionTimeoutException: timeout from socket connection connect timed out\r\n! at com.basho.riak.pbc.RiakConnectionPool.getConnection(RiakConnectionPool.java:391) ~[my_api.jar:na]\r\n! at com.basho.riak.pbc.RiakConnectionPool.doGetConection(RiakConnectionPool.java:336) ~[my_api.jar:na]\r\n! at com.basho.riak.pbc.RiakConnectionPool.access$400(RiakConnectionPool.java:45) ~[my_api.jar:na]\r\n! at com.basho.riak.pbc.RiakConnectionPool$State$2.getConnection(RiakConnectionPool.java:75) ~[my_api.jar:na]\r\n! at com.basho.riak.pbc.RiakConnectionPool.getConnection(RiakConnectionPool.java:332) ~[my_api.jar:na]\r\n! at com.basho.riak.pbc.RiakClient.getConnection(RiakClient.java:105) ~[my_api.jar:na]\r\n! at com.basho.riak.pbc.RiakClient.getBucketProperties(RiakClient.java:792) ~[my_api.jar:na]\r\n! at com.basho.riak.client.raw.pbc.PBClientAdapter.fetchBucket(PBClientAdapter.java:267) ~[my_api.jar:na]\r\n! at com.basho.riak.client.bucket.FetchBucket$1.call(FetchBucket.java:74) ~[my_api.jar:na]\r\n! at com.basho.riak.client.bucket.FetchBucket$1.call(FetchBucket.java:72) ~[my_api.jar:na]\r\n! at com.basho.riak.client.cap.DefaultRetrier.attempt(DefaultRetrier.java:72) ~[my_api.jar:na]\r\n!... 59 common frames omitted\r\nCaused by: ! java.net.SocketTimeoutException: connect timed out\r\n! at java.net.PlainSocketImpl.socketConnect(Native Method) ~[na:1.8.0_31]\r\n! at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:345) ~[na:1.8.0_31]\r\n! at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206) ~[na:1.8.0_31]\r\n! at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188) ~[na:1.8.0_31]\r\n! at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392) ~[na:1.8.0_31]\r\n! at java.net.Socket.connect(Socket.java:589) ~[na:1.8.0_31]\r\n! at com.basho.riak.pbc.RiakConnection.<init>(RiakConnection.java:68) ~[my_api.jar:na]\r\n! at com.basho.riak.pbc.RiakConnection.<init>(RiakConnection.java:51) ~[my_api.jar:na]\r\n! at com.basho.riak.pbc.RiakConnectionPool.getConnection(RiakConnectionPool.java:388) ~[my_api.jar:na]\r\n!... 69 common frames omitted\r\n```"}}