Shard Timeout

Hi,

I am tring to increase the timeout for the shard with little luck.
The default value is [1m], which I'd like to increase to [3m] as follows:

String json = marshaller.write(entity);
aggregate.add(indexRequest(getIndexName(entity.getClass()))
.type(entity.getTypeName())
.id(entity.getId())
.source(json)
.timeout(timeValueMinutes(3)));

However, ElasticSearch does not seem to pick up the change and times out on 1m anyway.
Is there anything else that I may be missing?

Thanks so much!

I believe the problem comes from the fact that the index does not exists (or its a "blocked" meta data state, where we don't know which indices we have), and then the create index API is executed with its own timeout instead of using the index request timeout. I fixed it in master: Index / Delete API: timeout should apply automatically to the auto create index API master timeout · Issue #1664 · elastic/elasticsearch · GitHub.

On Wednesday, February 1, 2012 at 1:54 PM, inflynx wrote:

Hi,

I am tring to increase the timeout for the shard with little luck.
The default value is [1m], which I'd like to increase to [3m] as follows:

String json = marshaller.write(entity);
aggregate.add(indexRequest(getIndexName(entity.getClass()))
.type(entity.getTypeName())
.id(entity.getId())
.source(json)
.timeout(timeValueMinutes(3)));

However, Elasticsearch does not seem to pick up the change and times out on
1m anyway.
Is there anything else that I may be missing?

Thanks so much!

--
View this message in context: http://elasticsearch-users.115913.n3.nabble.com/Shard-Timeout-tp3706354p3706354.html
Sent from the Elasticsearch Users mailing list archive at Nabble.com (http://Nabble.com).