That's strange. Can it be a problem in the code ? Something like looping forever ?
You can set the timeout to bulk request , but there is default timeout of 1 minute. May be some code will help. On Friday, November 28, 2014 3:09:37 PM UTC+1, [email protected] wrote: > > While testing how to handle es-cluster connectivity issues I ran into a > serious problem. The java api node client is connected and then the ES > server is killed. The application hangs in some bulkRequest, but this call > never returns. It also does not return, even if the cluster was started. On > console this exception is shown: > > Exception in thread > "elasticsearch[event-collector/12240@amnesia][generic][T#2]" > org.elasticsearch.cluster.block.ClusterBlockException: blocked by: > [SERVICE_UNAVAILABLE/1/state not recovered / > initialized];[SERVICE_UNAVAILABLE/2/no master]; > at > org.elasticsearch.cluster.block.ClusterBlocks.globalBlockedException(ClusterBlocks.java:138) > at > org.elasticsearch.cluster.block.ClusterBlocks.globalBlockedRaiseException(ClusterBlocks.java:128) > at > org.elasticsearch.action.bulk.TransportBulkAction.executeBulk(TransportBulkAction.java:197) > at > org.elasticsearch.action.bulk.TransportBulkAction.access$000(TransportBulkAction.java:65) > at > org.elasticsearch.action.bulk.TransportBulkAction$1.onFailure(TransportBulkAction.java:143) > at > org.elasticsearch.action.support.TransportAction$ThreadedActionListener$2.run(TransportAction.java:119) > at > java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) > at > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) > at java.lang.Thread.run(Thread.java:745) > > I am wondering that this scenario does not work. Any other scenario e.g. > shutdown 1-of-2 nodes is transparently handled. But now the client > application seems hanging for ever. > > And ideas? > > regards, > markus > -- You received this message because you are subscribed to the Google Groups "elasticsearch" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/7409f05d-b2cf-458d-b081-081bb10384d9%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
