📣 极限科技诚招搜索运维工程师(Elasticsearch/Easysearch)- 全职/北京 👉 : 立即申请加入

版本: 6.8-8.9

简而言之,当 Elasticsearch 在映射过程中遇到意外问题时会出现此错误。这可能是由于数据类型不正确、字段名称错误或正在索引的数据中存在其他不一致导致的。要解决此问题,您可以检查正在索引的数据是否存在不一致,确保为数据正确定义了映射,或者使用 Elasticsearch 错误日志来识别导致错误的具体问题。

日志上下文 #

日志 “expected mapper parsing failures. got” 的类名是 TransportWriteAction.java。 我们从 Elasticsearch 源代码中提取了以下内容,供那些寻求深入了解上下文的人使用:

throws Exception {
 final Location location;
 if (operationResult.getFailure() != null) {
 // check if any transient write operation failures should be bubbled up
 Exception failure = operationResult.getFailure();
 assert failure instanceof MapperParsingException : "expected mapper parsing failures. got " + failure;
 throw failure;
 } else {
 location = locationToSync(currentLocation; operationResult.getTranslogLocation());
 }
 return location;