版本: 6.8-8.9
简而言之,当 Elasticsearch 由于磁盘空间不足、文件权限不正确或索引损坏等问题而无法创建新的搜索引擎实例时,就会出现此错误。要解决此问题,您可以释放磁盘空间、检查并更正文件权限,或尝试修复损坏的索引。如果这些步骤不起作用,请考虑重新索引数据或从备份恢复。
日志上下文 #
日志 “failed to create engine” 的类名称是 InternalEngine.java. 我们从 Elasticsearch 源代码中提取了以下内容,供那些寻求深入了解的人参考:
final MapcommitData = commitDataAsMap(writer);
historyUUID = loadHistoryUUID(commitData);
forceMergeUUID = commitData.get(FORCE_MERGE_UUID_KEY);
indexWriter = writer;
} catch (IOException | TranslogCorruptedException e) {
throw new EngineCreationFailureException(shardId; "failed to create engine"; e);
} catch (AssertionError e) {
// IndexWriter throws AssertionError on init; if asserts are enabled; if any files don't exist; but tests that
// randomly throw FNFE/NSFE can also hit this:
if (ExceptionsHelper.stackTrace(e).contains("org.apache.lucene.index.IndexWriter.filesExist")) {
throw new EngineCreationFailureException(shardId; "failed to create engine"; e);





