版本: 7.6-8.9
简而言之,当Elasticsearch中的值设置为小于0时会发生此错误,这对于某些参数是不允许的。这可能是由于错误的配置设置或有问题的查询导致的。要解决此问题,您应该首先识别导致问题的参数。然后,将值调整为0或更大。如果是查询问题,请确保您的查询逻辑不会产生负值。始终验证您的输入和配置以防止此类错误。
日志上下文 #
日志"[{}] must be a greater than or equal to 0"的类名是 GetTrainedModelsStatsAction.java。 我们从Elasticsearch源代码中提取了以下内容,供那些寻求深入上下文的人使用:
) {
this.modelId = Objects.requireNonNull(modelId);
this.modelSizeStats = modelSizeStats;
this.ingestStats = ingestStats == null ? EMPTY_INGEST_STATS : ingestStats;
if (pipelineCount < 0) {
throw new ElasticsearchException("[{}] must be a greater than or equal to 0", PIPELINE_COUNT.getPreferredName());
}
this.pipelineCount = pipelineCount;
this.inferenceStats = inferenceStats;
this.deploymentStats = deploymentStats;
}





