Immediately upgrading a data stream to tsdb after is has been downgraded from a tsdb data stream fails the execute.
This is because there already exists a tsdb backing index and the rollover doesn't detects that, because the data stream is non tsdb.
Note that after waiting ~4hrs the rollover should succeed.
PUT _index_template/1
{
"index_patterns": [
"test*"
],
"template": {
"settings": {
"index": {
"mode": "time_series"
}
},
"mappings": {
"properties": {
"my_field": {
"time_series_dimension": true,
"type": "keyword"
}
}
}
},
"data_stream": {}
}
POST test1/_doc
{
"@timestamp": "2023-05-16T11:49:50.599Z",
"my_field": "value"
}
PUT _index_template/1
{
"index_patterns": [
"test*"
],
"template": {
"settings": {
"index": {
"mode": null
}
},
"mappings": {
"properties": {
"my_field": {
"time_series_dimension": true,
"type": "keyword"
}
}
}
},
"data_stream": {}
}
POST test1/_rollover
PUT _index_template/1
{
"index_patterns": [
"test*"
],
"template": {
"settings": {
"index": {
"mode": "time_series"
}
},
"mappings": {
"properties": {
"my_field": {
"time_series_dimension": true,
"type": "keyword"
}
}
}
},
"data_stream": {}
}
POST test1/_rollover
Immediately upgrading a data stream to tsdb after is has been downgraded from a tsdb data stream fails the execute.
This is because there already exists a tsdb backing index and the rollover doesn't detects that, because the data stream is non tsdb.
Note that after waiting ~4hrs the rollover should succeed.
Reproduction: