Riak crashing with using Java client.

Marko Rodriguez okrammarko at gmail.com
Wed Mar 9 15:47:40 EST 2011


Hello,

My name is Marko. I'm new to this list.

I don't know how to express my problem because it happens randomly :( .... In short, I believe that plainClient.listBucket("bucket").getKeys().iterator() causes Riak to shutdown and deny connections (stack trace below). 

marko:~/Desktop/riak-0.14.0$ ./bin/riak ping
!!!!
!!!! WARNING: ulimit -n is 256; 1024 is the recommended minimum.
!!!!
Node 'riak at 127.0.0.1' not responding to pings.


Perhaps its a out of memory issue ---- I was hoping that the iterator() of getKeys() was lazy---is it?

Thank you,
Marko.

http://markorodriguez.com

------------------------------------

Caused by: com.basho.riak.client.plain.RiakIOException: java.net.ConnectException: Connection refused
	at com.basho.riak.client.plain.ConvertToCheckedExceptions.handle(ConvertToCheckedExceptions.java:34)
	at com.basho.riak.client.util.ClientHelper.toss(ClientHelper.java:295)
	at com.basho.riak.client.util.ClientHelper.executeMethod(ClientHelper.java:390)
	at com.basho.riak.client.util.ClientHelper.executeMethod(ClientHelper.java:399)
	at com.basho.riak.client.util.ClientHelper.store(ClientHelper.java:168)
	at com.basho.riak.client.RiakClient.store(RiakClient.java:238)
	at com.basho.riak.client.RiakClient.store(RiakClient.java:243)
	... 3 more
Caused by: java.net.ConnectException: Connection refused
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:432)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:249)
	at org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createSocket(DefaultProtocolSocketFactory.java:80)
	at org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createSocket(DefaultProtocolSocketFactory.java:122)
	at org.apache.commons.httpclient.HttpConnection.open(HttpConnection.java:707)
	at org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$HttpConnectionAdapter.open(MultiThreadedHttpConnectionManager.java:1361)
	at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:387)
	at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171)
	at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397)
	at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:323)
	at com.basho.riak.client.util.ClientHelper.executeMethod(ClientHelper.java:372)
	... 8 more





More information about the riak-users mailing list