Setting version type via script processor can trigger assertion #86864
Labels
>bug
:Data Management/Ingest Node
Execution or management of Ingest Pipelines including GeoIP
Team:Data Management
Meta label for data/management team
Elasticsearch Version
8.3+ (including master)
Problem Description
If a script processor sets the version type to "external" without setting the version for the document, an assertion in
IndexShard.applyIndexOperationOnPrimary
,assert versionType.validateVersionForWrites(version)
, fires and terminates the node.Rather than triggering the assertion, perhaps we could reject the document if
validateVersionForWrites
is false?Steps to Reproduce
The text was updated successfully, but these errors were encountered: