#647 wait for yellow status
This commit is contained in:
parent
8e4aa4f083
commit
1b7ff889db
1 changed files with 2 additions and 2 deletions
|
@ -413,8 +413,8 @@ public class FessEsClient implements Client {
|
|||
|
||||
final String updatedIndexName;
|
||||
if (isFessIndex) {
|
||||
client.admin().indices().prepareRefresh(fessConfig.getIndexDocumentUpdateIndex()).execute()
|
||||
.actionGet(fessConfig.getIndexIndicesTimeout());
|
||||
client.admin().cluster().prepareHealth(fessConfig.getIndexDocumentUpdateIndex()).setWaitForYellowStatus().execute()
|
||||
.actionGet();
|
||||
final GetIndexResponse response =
|
||||
client.admin().indices().prepareGetIndex().addIndices(fessConfig.getIndexDocumentUpdateIndex()).execute()
|
||||
.actionGet(fessConfig.getIndexIndicesTimeout());
|
||||
|
|
Loading…
Add table
Reference in a new issue