版本: 7.9-8.9
简而言之,当Elasticsearch尝试对字节数值进行四舍五入时会发生此错误,而这种操作是不被支持的。这可能是由于配置错误或代码中的缺陷导致的。
要解决此问题,你可以检查Elasticsearch配置中与内存分配或数据大小相关的错误设置。如果配置看起来没有问题,你可能需要更新Elasticsearch版本或检查代码中可能导致此错误的缺陷。
日志上下文 #
日志"can’t round a [BYTES]“对应的类名是 ValuesSource.java。我们从Elasticsearch源代码中提取了以下内容,供那些需要深入了解上下文的用户参考:
return org.elasticsearch.index.fielddata.FieldData.docsWithValue(bytes);
} @Override
public final Function roundingPreparer(AggregationContext context) throws IOException {
throw new AggregationExecutionException("can't round a [BYTES]");
} /**
* Specialization of {@linkplain Bytes} who's underlying storage
* de-duplicates its bytes by storing them in a per-leaf sorted





