Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
NullPointerException when trying to add single alias without index or alias #3363
Missing validation when trying to add a single alias and index or alias (or both) are missing. The following requests lead to a NullPointerException:
curl -XPUT localhost:9200/_alias
We need to add proper validation for such cases. Also, in those cases the request never returns due to a missing CountDownLatch#countDown when there's an uncaught exception, which we are going to address on a separate issue.