#1071 wait for reindex completion
This commit is contained in:
parent
bc4d5ac375
commit
c57f5bd0ac
1 changed files with 1 additions and 1 deletions
|
@ -210,7 +210,7 @@ public class AdminUpgradeAction extends FessAdminAction {
|
|||
if (fessEsClient.createIndex(docIndex, "doc", toIndex)) {
|
||||
fessEsClient.admin().cluster().prepareHealth(toIndex).setWaitForYellowStatus().execute(ActionListener.wrap(response -> {
|
||||
fessEsClient.addMapping(docIndex, "doc", toIndex);
|
||||
fessEsClient.reindex(fromIndex, toIndex, false);
|
||||
fessEsClient.reindex(fromIndex, toIndex, true);
|
||||
if (!fessEsClient.updateAlias(toIndex)) {
|
||||
logger.warn("Failed to update aliases for " + fromIndex + " and " + toIndex);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue