-
Notifications
You must be signed in to change notification settings - Fork 180
Move AwsEc2UnicastHostsProvider to Ec2DiscoveryModule #160
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
Conversation
@imotov Thanks for your comments. Wanna review this? |
@dadoonet The change LGTM but is there a simple way to add a test for it? |
Thanks Igor. My plan was actually to test this manually: create 3 ec2 nodes with the SNAPSHOT version of the plugin and check that discovery still works fine. Any other suggestion? |
BTW I just tested it on Azure project which has more tests and it seems to work fine so far. |
In order to test if it injects any unicast hosts we have to have some instances running, which doesn't seem practical. Mocking it would be a good idea, but it would rather test elasticsearch than the plugin. So, I have no other suggestions, unfortunately. |
@imotov FYI I added a new commit as injecting |
@imotov I needed also to add some changes in pom.xml and plugin.xml. Tested on AWS platform with elasticsearch Could you check one more time (last :) ) so I can squash the commits and push the change? Thanks! |
LGTM |
@imotov Actually, I think there is something wrong with this change. We were removing Multicast before the change and we don't remove it anymore. I think we need to fix that. Sadly, it will require a change in elasticsearch core as we don't have access anymore to some of the methods we were using. |
Related to elastic/elasticsearch#9099