Skip to content
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

Refactored indices aliases api to make use of the new ack mechanism #4115

Closed
wants to merge 1 commit into from

Conversation

javanna
Copy link
Member

@javanna javanna commented Nov 7, 2013

Refactored indices aliases api to make use of the new recently introduced generic ack mechanism

Closes #4114

@ghost ghost assigned javanna Nov 7, 2013
@kimchy
Copy link
Member

kimchy commented Nov 14, 2013

Looks good. Note that by removing the node aliases action, it means that if we back port it to 0.90, then failures will happen between different version nodes (on aliases API) until the cluster is on the same version.

@javanna
Copy link
Member Author

javanna commented Nov 14, 2013

I had a deeper look at this and figured out that it shouldn't be a problem.

If an updated master receives a cluster/nodeAliasesUpdated request (the old format of ack for aliases) there's no endpoint registered for it, then it will return an exception (ActionNotFoundTransportException). But the sender node won't do anything with it as it uses an EmptyTransportResponseHandler. As a result the only downside, which doesn't hurt, is a warning in the master log:

Message not fully read (request) for [*] and action [cluster/nodeAliasesUpdated], resetting

The other way around, if an updated node doesn't send back the old format of ack request, an older version master will just timeout and return acknowledged:false.

I think it's fine in case of rolling upgrade, will merge this and backport it to 0.90 too.

@javanna
Copy link
Member Author

javanna commented Nov 14, 2013

Merged via b2ad34c and backported to 0.90.

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

Successfully merging this pull request may close these issues.

Move indices aliases api to new acknowledgement mechanism
2 participants