You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I create a document with version=1 and version_type=external_gte and then delete the document, the subsequent document creation with version=1 and version_type=external_gte fails with version conflict.
#get this error
{
"error" : {
"root_cause" : [
{
"type" : "version_conflict_engine_exception",
"reason" : "[1]: version conflict, current version [2] is higher than the one provided [1]",
"index" : "identifier",
"shard" : "0",
"index_uuid" : "45deXZY1RqWBO5cj8v0c7A"
}
],
"type" : "version_conflict_engine_exception",
"reason" : "[1]: version conflict, current version [2] is higher than the one provided [1]",
"index" : "identifier",
"shard" : "0",
"index_uuid" : "45deXZY1RqWBO5cj8v0c7A"
},
"status" : 409
}
Expected behavior
A document with the same version and content should be recreated after it has been already deleted.
Additional Details
Plugins
Please list all plugins currently enabled.
Screenshots
If applicable, add screenshots to help explain your problem.
Host/Environment (please complete the following information):
OS: [e.g. iOS]
Version [e.g. 22]
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered:
Describe the bug
If I create a document with version=1 and version_type=external_gte and then delete the document, the subsequent document creation with version=1 and version_type=external_gte fails with version conflict.
Related component
Indexing
To Reproduce
#create index
curl -XPUT "http://opensearch.opensearch:9200/identifier" -H 'Content-Type: application/json' -d'{ "settings": { "index": { "number_of_shards": 1, "number_of_replicas": 1 } }, "mappings": { "properties": { "id": { "type": "integer" } } }}'
#insert document
curl -XPUT "http://opensearch.opensearch:9200/identifier/_doc/1?version=1&version_type=external_gte" -H 'Content-Type: application/json' -d'{ "id": 1}'
#delete document
curl -XDELETE "http://opensearch.opensearch:9200/identifier/_doc/1"
#insert same document again
curl -XPUT "http://opensearch.opensearch:9200/identifier/_doc/1?version=1&version_type=external_gte" -H 'Content-Type: application/json' -d'{ "id": 1}'
#get this error
{
"error" : {
"root_cause" : [
{
"type" : "version_conflict_engine_exception",
"reason" : "[1]: version conflict, current version [2] is higher than the one provided [1]",
"index" : "identifier",
"shard" : "0",
"index_uuid" : "45deXZY1RqWBO5cj8v0c7A"
}
],
"type" : "version_conflict_engine_exception",
"reason" : "[1]: version conflict, current version [2] is higher than the one provided [1]",
"index" : "identifier",
"shard" : "0",
"index_uuid" : "45deXZY1RqWBO5cj8v0c7A"
},
"status" : 409
}
Expected behavior
A document with the same version and content should be recreated after it has been already deleted.
Additional Details
Plugins
Please list all plugins currently enabled.
Screenshots
If applicable, add screenshots to help explain your problem.
Host/Environment (please complete the following information):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: