paths is now the empty space by default

This commit is contained in:
Simon Willnauer 2016-01-15 21:21:08 +01:00
parent 04045a072f
commit 0b870c9869
2 changed files with 1 additions and 2 deletions

View File

@ -470,7 +470,7 @@ public class MetaDataCreateIndexService extends AbstractComponent {
List<String> validationErrors = new ArrayList<>();
if (Strings.isEmpty(customPath) == false && env.sharedDataFile() == null) {
validationErrors.add("path.shared_data must be set in order to use custom data paths");
} else if (customPath != null) {
} else if (Strings.isEmpty(customPath) == false) {
Path resolvedPath = PathUtils.get(new Path[]{env.sharedDataFile()}, customPath);
if (resolvedPath == null) {
validationErrors.add("custom path [" + customPath + "] is not a sub-path of path.shared_data [" + env.sharedDataFile() + "]");

View File

@ -105,7 +105,6 @@ public class MetaDataIndexTemplateServiceTests extends ESTestCase {
@Override
public void onFailure(Throwable t) {
t.printStackTrace();
throwables.add(t);
}
});