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

Cleanup LocalGatewayShardsState #8852

Merged
merged 1 commit into from Dec 11, 2014

Conversation

s1monw
Copy link
Contributor

@s1monw s1monw commented Dec 9, 2014

This commit tries to cleanup LocalGatewayShardsState to be more efficient
and easier to understand.

@s1monw
Copy link
Contributor Author

s1monw commented Dec 9, 2014

@kimchy can you please take a look at this you wrote this initially

@s1monw s1monw force-pushed the cleanup_lgw_shard_state branch 2 times, most recently from fab04af to 50c3eb7 Compare December 9, 2014 22:36
RoutingNode routingNode = state.readOnlyRoutingNodes().node(state.nodes().localNodeId());
final Map<ShardId, ShardStateInfo> newState;
if (routingNode != null) {
// our node is not in play yet...
Copy link
Member

Choose a reason for hiding this comment

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

this comment was in the original code, I think its misleading, we can remove it

@kimchy
Copy link
Member

kimchy commented Dec 10, 2014

LGTM, love the cleanup

@s1monw
Copy link
Contributor Author

s1monw commented Dec 10, 2014

cool stuff @kimchy thanks I tried to make it simpler and more efficient. I will add unittests to it and push it!! I will remove the comment too.

@s1monw s1monw force-pushed the cleanup_lgw_shard_state branch 2 times, most recently from b201a67 to 63e2bb2 Compare December 11, 2014 16:15
This commit tries to cleanup LocalGatewayShardsState to be more efficient
and easier to understand.
@s1monw s1monw merged commit 5953439 into elastic:master Dec 11, 2014
@clintongormley clintongormley changed the title [GATEWAY] Cleanup LocalGatewayShardsState Cleanup LocalGatewayShardsState Jun 7, 2015
@clintongormley clintongormley added the :Core/Infra/Core Core issues without another label label Jun 7, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Core/Infra/Core Core issues without another label >enhancement v2.0.0-beta1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants