From 2a9f26dfdcc1b485645adcc4c7ac05c5e0adb80e Mon Sep 17 00:00:00 2001 From: Igor Motov Date: Tue, 30 Jun 2015 20:07:43 -0400 Subject: [PATCH] Improve repository verification failure message Closes #11922 --- .../snapshots/blobstore/BlobStoreIndexShardRepository.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/src/main/java/org/elasticsearch/index/snapshots/blobstore/BlobStoreIndexShardRepository.java b/core/src/main/java/org/elasticsearch/index/snapshots/blobstore/BlobStoreIndexShardRepository.java index e654b070441..9480e6081cb 100644 --- a/core/src/main/java/org/elasticsearch/index/snapshots/blobstore/BlobStoreIndexShardRepository.java +++ b/core/src/main/java/org/elasticsearch/index/snapshots/blobstore/BlobStoreIndexShardRepository.java @@ -204,7 +204,9 @@ public class BlobStoreIndexShardRepository extends AbstractComponent implements throw new RepositoryVerificationException(repositoryName, "store location [" + blobStore + "] is not accessible on the node [" + localNode + "]", exp); } } else { - throw new RepositoryVerificationException(repositoryName, "store location [" + blobStore + "] is not shared between node [" + localNode + "] and the master node"); + throw new RepositoryVerificationException(repositoryName, "a file written by master to the store [" + blobStore + "] cannot be accessed on the node [" + localNode + "]. " + + "This might indicate that the store [" + blobStore + "] is not shared between this node and the master node or " + + "that permissions on the store don't allow reading files written by the master node"); } }