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

Simplify assignToNode to only do initializing #12235

Merged
merged 1 commit into from Jul 14, 2015

Conversation

kimchy
Copy link
Member

@kimchy kimchy commented Jul 14, 2015

The method really only should do the move from unassigned to initializing, all the other moves have explicit methods like relocate

assert state == ShardRoutingState.UNASSIGNED : this;
state = ShardRoutingState.INITIALIZING;
currentNodeId = nodeId;
relocatingNodeId = null;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

strictly speaking this should be need right? maybe just assert on it?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yea, will assert

@bleskes
Copy link
Contributor

bleskes commented Jul 14, 2015

LGTM. Left a tiny comment. No need for another cycle.

The method really only should do the move from unassigned to initializing, all the other moves have explicit methods like relocate
@kimchy kimchy force-pushed the move_assing_to_initialize branch from c522c18 to c6b110c Compare July 14, 2015 14:06
@kimchy kimchy merged commit c6b110c into elastic:master Jul 14, 2015
@kimchy kimchy deleted the move_assing_to_initialize branch July 14, 2015 14:06
@lcawl lcawl added :Distributed/Distributed A catch all label for anything in the Distributed Area. If you aren't sure, use this one. and removed :Allocation labels Feb 13, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Distributed/Distributed A catch all label for anything in the Distributed Area. If you aren't sure, use this one. >enhancement v2.0.0-beta1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants