elasticsearch/elasticsearch — pull request #1857 by nlalevee (2012-04-12 14:53:54+00:00)
Title: When creating an index, fail properly on classpath error

I was struggling with an elasticsearch which was not responding at all to my "create index" request. I was able to find out the error until I had the idea of starting in foreground, so I could get the stdout. There was some thread dying because of a NoClassDefFoundError. One of my plugin was not properly setup.

The suggested patch catch the NoClassDefFoundError and throws a proper IndexCreationException, which in the end produce an error on the client side rather than having it hang.

Probably RiversService#createRiver suffer from the same issue.