Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
---
"basic tsdb delete":
- skip:
cluster_features: "index.time_series_synthetic_id"
reason: when cluster has synthetic_id feature use 71_tsdb_synthetic_id_false or 72_tsdb_synthetic_id_true instead
- requires:
cluster_features: ["gte_v8.13.0"]
reason: _tsid hashing introduced in 8.13
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
---
"basic tsdb delete":
- requires:
cluster_features: "index.time_series_synthetic_id"
reason: explicit synthetic_id false only applies when cluster has the feature
- requires:
cluster_features: ["gte_v8.13.0"]
reason: _tsid hashing introduced in 8.13

- do:
indices.create:
index: weather_sensors_synthetic_id_false
body:
settings:
index:
mode: time_series
routing_path: [sensor_id, location]
time_series:
start_time: 2000-01-01T00:00:00.000Z
end_time: 2099-12-31T23:59:59.999Z
number_of_replicas: 0
number_of_shards: 1
mapping:
synthetic_id: false
mappings:
properties:
"@timestamp":
type: date
humidity:
type: half_float
time_series_metric: gauge
location:
type: keyword
time_series_dimension: true
sensor_id:
type: keyword
time_series_dimension: true
temperature:
type: half_float
time_series_metric: gauge

- do:
index:
index: weather_sensors_synthetic_id_false
body:
"@timestamp": 2023-05-31T08:41:15.000Z
sensor_id: SYKENET-000001
location: swamp
temperature: 32.4
humidity: 88.9
- match: { _id: crxuhAep5Npwt_etAAABiHD35_g }
- match: { result: created }
- match: { _version: 1 }

- do:
delete:
index: weather_sensors_synthetic_id_false
id: crxuhAep5Npwt_etAAABiHD35_g
- match: { _id: crxuhAep5Npwt_etAAABiHD35_g }
- match: { result: deleted }
- match: { _version: 2 }

- do:
indices.flush:
index: weather_sensors_synthetic_id_false

- do:
index:
index: weather_sensors_synthetic_id_false
body:
"@timestamp": 2023-05-31T08:41:15.000Z
sensor_id: SYKENET-000001
location: swamp
temperature: 32.4
humidity: 88.9
- match: { _id: crxuhAep5Npwt_etAAABiHD35_g }
- match: { result: created }
- match: { _version: 3 }
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
---
"basic tsdb delete":
- requires:
cluster_features: "index.time_series_synthetic_id"
reason: explicit synthetic_id true requires the feature
- requires:
cluster_features: ["gte_v8.13.0"]
reason: _tsid hashing introduced in 8.13

- do:
indices.create:
index: weather_sensors_synthetic_id_true
body:
settings:
index:
mode: time_series
routing_path: [sensor_id, location]
time_series:
start_time: 2000-01-01T00:00:00.000Z
end_time: 2099-12-31T23:59:59.999Z
number_of_replicas: 0
number_of_shards: 1
mapping:
synthetic_id: true
mappings:
properties:
"@timestamp":
type: date
humidity:
type: half_float
time_series_metric: gauge
location:
type: keyword
time_series_dimension: true
sensor_id:
type: keyword
time_series_dimension: true
temperature:
type: half_float
time_series_metric: gauge

- do:
index:
index: weather_sensors_synthetic_id_true
body:
"@timestamp": 2023-05-31T08:41:15.000Z
sensor_id: SYKENET-000001
location: swamp
temperature: 32.4
humidity: 88.9
- match: { _id: KBNikT0PtwhSVNrMwdFLUCCMxM33PPpaqsD0ZiHcNlFdRDOaemCHLb5___53jwgYB4RuvHI }
- match: { result: created }
- match: { _version: 1 }

- do:
delete:
index: weather_sensors_synthetic_id_true
id: KBNikT0PtwhSVNrMwdFLUCCMxM33PPpaqsD0ZiHcNlFdRDOaemCHLb5___53jwgYB4RuvHI
- match: { _id: KBNikT0PtwhSVNrMwdFLUCCMxM33PPpaqsD0ZiHcNlFdRDOaemCHLb5___53jwgYB4RuvHI }
- match: { result: deleted }
- match: { _version: 2 }

- do:
indices.flush:
index: weather_sensors_synthetic_id_true

- do:
index:
index: weather_sensors_synthetic_id_true
body:
"@timestamp": 2023-05-31T08:41:15.000Z
sensor_id: SYKENET-000001
location: swamp
temperature: 32.4
humidity: 88.9
- match: { _id: KBNikT0PtwhSVNrMwdFLUCCMxM33PPpaqsD0ZiHcNlFdRDOaemCHLb5___53jwgYB4RuvHI }
- match: { result: created }
- match: { _version: 3 }