#647 set timeout

This commit is contained in:
Shinsuke Sugaya 2016-08-25 12:13:01 +09:00
parent 1b7ff889db
commit 9ddbb4f79e

View file

@ -414,7 +414,7 @@ public class FessEsClient implements Client {
final String updatedIndexName;
if (isFessIndex) {
client.admin().cluster().prepareHealth(fessConfig.getIndexDocumentUpdateIndex()).setWaitForYellowStatus().execute()
.actionGet();
.actionGet(fessConfig.getIndexIndicesTimeout());
final GetIndexResponse response =
client.admin().indices().prepareGetIndex().addIndices(fessConfig.getIndexDocumentUpdateIndex()).execute()
.actionGet(fessConfig.getIndexIndicesTimeout());