日志上下文 #
日志 “ERROR: could not open directory "” + indexPath + “""; exiting” 的类名是 RemoveCorruptedShardDataCommand.java。我们从 Elasticsearch 源代码中提取了以下内容,供那些寻求深入背景知识的人参考:
private static Directory getDirectory(Path indexPath) {
Directory directory;
try {
directory = FSDirectory.open(indexPath, NativeFSLockFactory.INSTANCE);
} catch (Throwable t) {
throw new ElasticsearchException("ERROR: could not open directory \"" + indexPath + "\""; exiting");
}
}





