Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Error message referencing the number of shards when in fact the number of replicas is concerned #36234
Elasticsearch version (
Plugins installed: not applicable
JVM version (
OS version (
Description of the problem including expected versus actual behavior:
I would expect the following message when my number of replicas is wrong:
"must specify non-negative number of replicas for index [" + index + "]"
Instead the message says:
"must specify non-negative number of shards for index [" + index + "]"
Which is confusing since we have two parameters (index.number_of_shards and index.replicas and this message applies to the latter.)
Steps to reproduce:
Set a number of replicas which is negative. See this code:
Provide logs (if relevant):
I am getting the following error when trying to create a table in express-cassandra. As we can see, it outputs the error I mentioned above. Something to do with the number of replicas, but referenced as shards. I understands that these numbers are linked, but I think that the message is wrong.