Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

When creating an index, fail properly on classpath error

  • Loading branch information...
commit 32e1a9c85506afc25e62fdbd2076473bdc4fc4d0 1 parent 7e66e1c
@nlalevee nlalevee authored kimchy committed
2  src/main/java/org/elasticsearch/indices/
@@ -284,6 +284,8 @@ public synchronized IndexService createIndex(String sIndexName, Settings setting
Injector indexInjector;
try {
indexInjector = modules.createChildInjector(injector);
+ } catch (NoClassDefFoundError e) {
+ throw new IndexCreationException(index, e);
} catch (CreationException e) {
throw new IndexCreationException(index, Injectors.getFirstErrorFailure(e));
Please sign in to comment.
Something went wrong with that request. Please try again.