Open
Description
Backing indices of a data stream restored from snapshot are not visible in the index recovery API until they have been re-added to the data stream (with the modify data streams API).
Steps to reproduce:
DELETE .ds-logs-elastic_agent.packetbeat-default-2023.04.25-000001
POST _snapshot/found-snapshots/cloud-snapshot-2024.12.17-zpritqyatr6ac1zmrfgffq/_restore
{
"indices": ".ds-logs-elastic_agent.packetbeat-default-2023.04.25-000001",
"include_global_state": false,
"include_aliases": true
}
=> GET _recovery?human&filter_path=.ds-logs-elastic_agent.packetbeat-default-2023.04.25-000001
returns {}
POST _data_stream/_modify
{
"actions": [
{
"add_backing_index": {
"data_stream": "logs-elastic_agent.packetbeat-default",
"index": ".ds-logs-elastic_agent.packetbeat-default-2023.04.25-000001"
}
}
]
}
GET _recovery?human&filter_path=.ds-logs-elastic_agent.packetbeat-default-2023.04.25-000001
returns the expected results.
Notes:
GET .ds-logs-elastic_agent.packetbeat-default-2023.04.25-000001/_recovery?human
works even if the index was not added to the data stream- Kibana relies on
_recovery
for theapp/management/data/snapshot_restore/restore_status
page, so restored backing indices are missing from the page until are added back to the data stream - relates Allow indices to be restored/mounted into a data stream #76153
Metadata
Metadata
Assignees
Labels
Type
Projects
Milestone
Relationships
Development
No branches or pull requests
Activity
elasticsearchmachine commentedon Dec 17, 2024
Pinging @elastic/es-distributed-indexing (Team:Distributed Indexing)