New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot disable autoCreateIndex #92
Comments
Thanks for reporting the issue, Stefano. |
This is weird, I cannot reproduce the issue with ES 6.5.3, 7.1.1 or 7.2.0, and I have been using this pom.xml https://gist.github.com/alexcojocaru/61cb2b42d21bf408669bc9a0818cf8f1 . Do you mind sharing your pom file? |
Sure here it is:
Some parts of the file I cannot post, but this is basically all of it. It was actually my issue I verified since I am not using 6.5.3 rather 6.2.2 actually, I checked in the elasticsearch0/lib folder used for the integration testing and I see there is elasticsearch-6.2.2.jar so.. Problem is I am working in a very closed environment and I don't have access to artifacts.elastic.co therefore your plugin cannot download the files it needs directly. I got elasticsearch-6.5.3 manually from our repos but apparently it is not 6.5.3 :) If you can verify against 6.2.2 you might get same behaviour; seeing on 6.5+ you don't have this problem I think we can close the issue. I currently solved it by leaving index autocreation to the default value (true) and marking all attributes in my POJO with the correct @field annotation so that indexes can be correctly autocreated and it works for me now. Thanks again and have a nice day |
Even with ES 6.2.2 and plugin version 6.13, I cannot reproduce the problem. The ES documentation states that the property can be set to false: |
A workaround to using the Lines 83 to 86 in c632844
Remember that you need multiple properties blocks if you run multiple ES instances in the cluster. The attribute name and value provided using instance settings will be passed to the ES runner as arguments using the -Ename=value syntax: Lines 90 to 93 in c632844
|
Yet another workaround is to use an init script the make use of the Index API to disable the automatic index creation. |
I am going to close this issue for now, since I cannot reproduce it. |
Hello,
I'm testing on ES 6.5.3 and 7.1.1
Setting autoCreateIndex=false results in this error:
java.lang.IllegalArgumentException: the [action.auto_create_index] setting value [false] is too restrictive. disable [action.auto_create_index] or set it to [.watches,.triggered_watches,.watcher-history-*]
Setting it to .watches,.triggered_watches,.watcher-history-* is not possible since the parameter expects a boolean value.
Thank you and cheers
The text was updated successfully, but these errors were encountered: