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

Move GatewayShardsState logic into IndexShard #10093

Merged
merged 1 commit into from Mar 19, 2015

Conversation

s1monw
Copy link
Contributor

@s1monw s1monw commented Mar 14, 2015

The index shard should take care of shard state persistence since it has
all the information and the gateway concept has been removed in master.

@s1monw
Copy link
Contributor Author

s1monw commented Mar 16, 2015

@bleskes do you mind taking a look
@kimchy you maybe too?

@s1monw s1monw force-pushed the merge_shard_state branch 2 times, most recently from 0c0bfe1 to 6055b1c Compare March 16, 2015 20:42
if (shardStateInfo != null) {
logger.debug("{} shard state info found: [{}]", request.shardId, shardStateInfo);
return new NodeGatewayStartedShards(clusterService.localNode(), shardStateInfo.version);
logger.warn("{} loading local shard state info", request.shardId);
Copy link
Contributor

Choose a reason for hiding this comment

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

this needs to go back to trace?

@bleskes
Copy link
Contributor

bleskes commented Mar 19, 2015

I like this change. Makes it simpler and doesn't require a global map. Left a couple of comments

@s1monw
Copy link
Contributor Author

s1monw commented Mar 19, 2015

pushed a new commit

@bleskes
Copy link
Contributor

bleskes commented Mar 19, 2015

replied to the replies ...

@s1monw
Copy link
Contributor Author

s1monw commented Mar 19, 2015

pushed more feedback @bleskes thx

@bleskes
Copy link
Contributor

bleskes commented Mar 19, 2015

LGTM. left one minor typo comment. @s1monw thx.

The index shard should take care of shard state persistence since it has
all the information and the gateway concept has been removed in master.
@s1monw s1monw merged commit a6897aa into elastic:master Mar 19, 2015
@clintongormley clintongormley changed the title [GATEWAY] Move GatewayShardsState logic into IndexShard Move GatewayShardsState logic into IndexShard 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