版本: 7.12-8.6
简而言之,当Elasticsearch中的数据加密密钥(DEK)大于预期大小时,就会出现此错误。这可能是由于配置问题或加密过程的问题造成的。要解决此问题,您可以尝试以下方法:1)检查并更正DEK配置设置;2)验证加密过程并确保其正常工作;3)如果问题仍然存在,考虑重新生成新的DEK并替换旧的DEK。
日志上下文
日志"Wrapped DEK [" + dekId + “] is larger than expected"的类名是 EncryptedRepository.java。我们从Elasticsearch源代码中提取了以下内容,供那些寻求深入上下文的人使用:
repositoryName;
"Wrapped DEK [" + dekId + "] has smaller length [" + bytesRead + "] than expected"
);
}
if (encryptedDEKInputStream.read() != -1) {
throw new RepositoryException(repositoryName, "Wrapped DEK [" + dekId + "] is larger than expected");
}
} catch (NoSuchFileException e) {
// do NOT throw IOException when the DEK does not exist; as this is a decryption problem; and IOExceptions
// can move the repository in the corrupted state
throw new ElasticsearchException(





