Skip to content

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

Merged
merged 1 commit into from
Jan 30, 2015
Merged

Move AwsEc2UnicastHostsProvider to Ec2DiscoveryModule #160

merged 1 commit into from
Jan 30, 2015

Conversation

dadoonet
Copy link
Contributor

@dadoonet dadoonet commented Jan 2, 2015

@dadoonet dadoonet self-assigned this Jan 2, 2015
@dadoonet dadoonet added this to the 3.0.0 milestone Jan 2, 2015
@dadoonet dadoonet added the 3.0.0 label Jan 2, 2015
@dadoonet
Copy link
Contributor Author

dadoonet commented Jan 2, 2015

@imotov Thanks for your comments. Wanna review this?

@imotov
Copy link
Contributor

imotov commented Jan 3, 2015

@dadoonet The change LGTM but is there a simple way to add a test for it?

@dadoonet
Copy link
Contributor Author

dadoonet commented Jan 3, 2015

Thanks Igor.
I have Ec2DiscoveryITest which simply tries to start a node and make sure that it does not fail. May be I should mock AWS API as I did for Azure?

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?

@dadoonet
Copy link
Contributor Author

dadoonet commented Jan 3, 2015

BTW I just tested it on Azure project which has more tests and it seems to work fine so far.

@imotov
Copy link
Contributor

imotov commented Jan 3, 2015

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.

@dadoonet
Copy link
Contributor Author

@imotov FYI I added a new commit as injecting AmazonEC2 was not possible (it's not an elasticsearch aws object but a pure AWS SDK object - not instantiated by guice that is).
Going to run some tests now on real instances.

@dadoonet
Copy link
Contributor Author

@imotov I needed also to add some changes in pom.xml and plugin.xml.

Tested on AWS platform with elasticsearch version[2.0.0-SNAPSHOT], pid[26010], build[69f74d7/2015-01-12T18:29:44Z] and this patch.
2 nodes cluster. Discovery went well.

Could you check one more time (last :) ) so I can squash the commits and push the change? Thanks!

@imotov
Copy link
Contributor

imotov commented Jan 14, 2015

LGTM

@dadoonet dadoonet merged commit e6080e9 into elastic:master Jan 30, 2015
@dadoonet dadoonet deleted the pr/ec2-host-provider branch January 30, 2015 10:17
@dadoonet dadoonet removed the review label Jan 30, 2015
@dadoonet
Copy link
Contributor Author

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants