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

Snapshot status api: make sure headers are handed over to inner nodes request #9409

Closed
wants to merge 1 commit into from

Conversation

javanna
Copy link
Member

@javanna javanna commented Jan 26, 2015

No description provided.

super(request);
this.nodesIds = nodesIds;
}

protected NodesOperationRequest(String... nodesIds) {
Copy link
Member

Choose a reason for hiding this comment

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

maybe this constructor should be removed?

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 wish we could remove it, but it's used by other requests that are created directly through java api, for instance nodes hot threads, nodes info etc. those don't need headers in their constructor, as the client automatically copies over the headers in the Rest action.

@martijnvg
Copy link
Member

left one minor comment, other than that LGTM

javanna added a commit that referenced this pull request Jan 26, 2015
javanna added a commit that referenced this pull request Jan 26, 2015
@javanna javanna closed this in aa6bf5f Jan 26, 2015
@@ -43,6 +43,11 @@ protected NodesOperationRequest() {

}

protected NodesOperationRequest(ActionRequest request, String... nodesIds) {
Copy link
Contributor

Choose a reason for hiding this comment

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

does that mean that all node operation requests suffer from the same issue? did you check for other potential bugs around this?

Copy link
Member Author

Choose a reason for hiding this comment

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

all of the other requests that extend this one are user facing requests, this is the only case where we extended for an internal request that actually needed the headers copied from the parent request. We are good ;)

mute pushed a commit to mute/elasticsearch that referenced this pull request Jul 29, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants