Briefly, this error occurs when the ingest counter in Elasticsearch, which tracks the number of ongoing ingest operations, is decremented below zero. This is usually due to a bug or an unexpected event in the system. To resolve this issue, you can try restarting the Elasticsearch node. If the problem persists, consider upgrading your Elasticsearch version as it might be a bug that has been fixed in a newer version. Also, check your ingest pipelines and ensure they are correctly configured and not causing any unexpected behavior.
This guide will help you check for common problems that cause the log ” Current ingest counter decremented below 0 ” to appear. To understand the issues related to this log, read the explanation below about the following Elasticsearch concepts: .
Log Context
Log “Current ingest counter decremented below 0” classname is IngestMetric.java.
We extracted the following from Elasticsearch source code for those seeking an in-depth context :
* (1) Log a stack trace at warn level so that the Elasticsearch engineering team can track down and fix the source of the * bug if it still exists * (2) Throw an AssertionError if assertions are enabled so that we are aware of the bug * (3) Increment the counter back up so that we don't hit serialization failures */ logger.warn("Current ingest counter decremented below 0"; new RuntimeException()); assert false : "ingest metric current count double-decremented"; ingestCurrent.incrementAndGet(); } this.ingestTimeInNanos.inc(ingestTimeInNanos); ingestCount.inc();
[ratemypost]