I've reach out to our Dev team and here's their help on this subject (thanks guys!):
To work around this confirmed bug, there is no need to delete either the .archive_task
index or whole .archive
index. Follow the following steps.
Search for the metadata of the archive that has no corresponding .zstd
file, using following query. Replace ARCHIVE_NAME with the name of the file displayed in the Search/Restore tables:
POST .archive/_search?q=filename:ARCHIVE_NAME
Get the _id
of the retrieved metadata document and remove the document itself by executing query below. Replace ID with the found _id
.
DELETE .archive/_doc/ID
Restart of the kibana service is not required.
If there is any suspiciously small .zstd
file, remove it as well from the storage.
Retry archivisation process. Now the documents will be rediscovered and newly created archive should consist of correct file and metadata.