Another fix of check for required settings in FsRepository
This time with the right setting
This commit is contained in:
parent
dc0fb29ad9
commit
30bfde9a2d
|
@ -77,7 +77,7 @@ public class FsRepository extends BlobStoreRepository {
|
||||||
public FsRepository(RepositoryName name, RepositorySettings repositorySettings, IndexShardRepository indexShardRepository, Environment environment) throws IOException {
|
public FsRepository(RepositoryName name, RepositorySettings repositorySettings, IndexShardRepository indexShardRepository, Environment environment) throws IOException {
|
||||||
super(name.getName(), repositorySettings, indexShardRepository);
|
super(name.getName(), repositorySettings, indexShardRepository);
|
||||||
Path locationFile;
|
Path locationFile;
|
||||||
String location = REPOSITORIES_LOCATION_SETTING.get(settings);
|
String location = REPOSITORIES_LOCATION_SETTING.get(repositorySettings.settings());
|
||||||
if (location.isEmpty()) {
|
if (location.isEmpty()) {
|
||||||
logger.warn("the repository location is missing, it should point to a shared file system location that is available on all master and data nodes");
|
logger.warn("the repository location is missing, it should point to a shared file system location that is available on all master and data nodes");
|
||||||
throw new RepositoryException(name.name(), "missing location");
|
throw new RepositoryException(name.name(), "missing location");
|
||||||
|
|
Loading…
Reference in New Issue