版本: 7.16-8.9
简而言之,当您尝试对不存在的 Elasticsearch 索引执行迁移或操作时,会出现此错误。这可能是由于索引名称拼写错误或索引已被删除造成的。要解决此问题,您可以在执行操作之前验证索引名称并确保索引存在。如果索引已被删除,您可能需要重新创建它或从备份中恢复它。此外,请确保您的 Elasticsearch 集群处于健康状态,并且没有网络连接问题。
日志上下文 #
日志 “cannot migrate because that index does not exist” 的类名是 SystemIndexMigrator.java。我们从 Elasticsearch 源代码中提取了以下内容,供那些寻求深入了解上下文的人参考:
);
return;
} if (stateIndexName != null && clusterState.metadata().hasIndex(stateIndexName) == false) {
markAsFailed(new IndexNotFoundException(stateIndexName; "cannot migrate because that index does not exist"));
return;
}
} else {
stateIndexName = null;
stateFeatureName = null;





