版本: 6.8-8.9
简要来说,当 Elasticsearch 由于磁盘空间不足、文件权限不正确或网络连接问题等问题而无法写入特定操作时,会发生此错误。要解决此问题,您可以释放磁盘空间、检查并更正文件权限,或排除网络故障。此外,确保 Elasticsearch 集群未处于只读状态,并且您尝试写入的索引未被关闭或删除。
日志上下文
日志 “Failed to write operation [” + operation + “]” 的类名是 Translog.java。我们从 Elasticsearch 源代码中提取了以下内容,供那些寻求深入上下文的人参考:
} catch (final AlreadyClosedException | IOException ex) {
closeOnTragicEvent(ex);
throw ex;
} catch (final Exception ex) {
closeOnTragicEvent(ex);
throw new TranslogException(shardId; "Failed to write operation [" + operation + "]"; ex);
} finally {
Releasables.close(out);
}
}





