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

Convert upgrade action to broadcast by node #13205

Merged
merged 1 commit into from Aug 31, 2015
Merged

Convert upgrade action to broadcast by node #13205

merged 1 commit into from Aug 31, 2015

Conversation

jasontedor
Copy link
Member

Several shard-level operations that previously broadcasted a request
per shard were converted to broadcast a request per node. This commit
converts upgrade action to this new model as well.

Closes #13204

@jasontedor jasontedor added :Distributed/Network Http and internode communication implementations >enhancement v2.0.0 v2.1.0 review and removed :Distributed/Network Http and internode communication implementations labels Aug 31, 2015
@@ -134,7 +134,7 @@ private final Response newResponse(Request request, AtomicReferenceArray respons
}
totalShards += unavailableShardExceptions.size();
int failedShards = exceptions.size();
return newResponse(request, totalShards, successfulShards, failedShards, broadcastByNodeResponses, exceptions);
return newResponse(request, totalShards, successfulShards, failedShards, broadcastByNodeResponses, exceptions, clusterService.state());
Copy link
Contributor

Choose a reason for hiding this comment

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

can we tunnel through the cluster state used in the action? that way we don't need to worry about consistency between the two (concurrent index deletion etc.)

Copy link
Member Author

Choose a reason for hiding this comment

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

I've addressed this.

@bleskes
Copy link
Contributor

bleskes commented Aug 31, 2015

Thx @jasontedor . Left one minor comment.

Several shard-level operations that previously broadcasted a request
per shard were converted to broadcast a request per node. This commit
converts upgrade action to this new model as well.

Closes #13204
@bleskes
Copy link
Contributor

bleskes commented Aug 31, 2015

LGTM

jasontedor added a commit that referenced this pull request Aug 31, 2015
Convert upgrade action to broadcast by node
@jasontedor jasontedor merged commit 6e2dc73 into elastic:master Aug 31, 2015
@jasontedor jasontedor deleted the feature/13204 branch August 31, 2015 10:02
@jasontedor jasontedor removed the review label Aug 31, 2015
jasontedor added a commit that referenced this pull request Aug 31, 2015
This commit backports 6e2dc73, the pull
request #13205 for #13204 from master to 2.0.
@jasontedor
Copy link
Member Author

Thanks for reviewing @bleskes. I've merged this to master and integrated it into to 2.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Distributed/Network Http and internode communication implementations >enhancement v2.0.0-beta2
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants