I am running into an issue using the external versioning where deleting the index does not seem to clear the external versioning for that given index.
Steps to recreate:
- Create an index
- Put an item with
id: 'someid',
version: 0,
version_type: 'external',
into the index
- delete the index
- Wait arbitrarily long
- Create the same index
- Put the same item with
id: 'someid',
version: 0,
version_type: 'external',
into the index and I get a version_conflict_engine_exception
"name": "ResponseError",
"meta": {
"body": {
"error": {
"root_cause": [
{
"type": "version_conflict_engine_exception",
"reason": "[contact_v1][someid]: version conflict, current version [1] is higher or equal to the one provided [1]",
"index_uuid": "PvmFtcibTfmBCu8C7iQ43Q",
"shard": "0",
"index": "stpze-contacts-3"
}
],
"type": "version_conflict_engine_exception",
"reason": "[contact_v1][someid]: version conflict, current version [1] is higher or equal to the one provided [1]",
"index_uuid": "PvmFtcibTfmBCu8C7iQ43Q",
"shard": "0",
"index": "stpze-contacts-3"
},
"status": 409
},
"statusCode": 409,
My elastic cluster is running in a docker container
{
"name": "0_cod3F",
"cluster_name": "docker-cluster",
"cluster_uuid": "Cvy3FFwdTuuwXHG8S6ws6A",
"version": {
"number": "6.4.3",
"build_flavor": "default",
"build_type": "tar",
"build_hash": "fe40335",
"build_date": "2018-10-30T23:17:19.084789Z",
"build_snapshot": false,
"lucene_version": "7.4.0",
"minimum_wire_compatibility_version": "5.6.0",
"minimum_index_compatibility_version": "5.0.0"
},
"tagline": "You Know, for Search"
}
When printing all entries in the index it returns an empty list
{
"took": 1,
"timed_out": false,
"_shards": {
"total": 3,
"successful": 3,
"skipped": 0,
"failed": 0
},
"hits": {
"total": 0,
"max_score": null,
"hits": []
}
}
Is there some extra step involved in deleting the external
verisoning metadata?