Distinguish "repository doesn't exist" from "repository plugin not installed" #81758
Labels
>bug
:Distributed/Snapshot/Restore
Anything directly related to the `_snapshot/*` APIs
Team:Distributed
Meta label for distributed team
Elasticsearch version (
bin/elasticsearch --version
): 7.16.1 (and many others)Plugins installed: []
JVM version (
java -version
): AnyOS version (
uname -a
if on a Unix-like system): AnyDescription of the problem including expected versus actual behavior:
If you define a repository using a plugin and then remove the plugin then the
RepositoryMetadata
lives on but we do not create a correspondingRepository
instance. This means that operations on the repository (creating snapshots etc) will fail with aRepositoryMissingException
which is very confusing becauseGET _snapshot
will show that the repository is not missing at all.I believe in this case we should create a placeholder
Repository
instance so that operations on the repository fail with a more helpful message.The text was updated successfully, but these errors were encountered: