Socket write error: 111


#1

I am writing to a aerospike cluster of two nodes. While writing data I stopped one of the node in a cluster. I am getting error , Error code [-10] , Error_Message [Socket write error: 111, ip:3000, ], I am expecting only “AEROSPIKE_ERR_TIMEOUT” error , But why I am getting “Socket write error: 111” ???


#2

“Socket write error: 111” means you received an error writing to socket with errno=111 (ECONNREFUSED). This means the socket write failed immediately (node already down) before the timeout was reached.