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

Fix reindex with transport client #19997

Merged
merged 1 commit into from
Aug 16, 2016

Conversation

nik9000
Copy link
Member

@nik9000 nik9000 commented Aug 15, 2016

Fixes reindex's status requests through the transport client and reworks ListTasksResponse so its toString isn't breaky with the transport client.

Reworks #19773
Closes #19979

@nik9000
Copy link
Member Author

nik9000 commented Aug 15, 2016

@dadoonet, the bulk of this reworks some changes you made because they didn't play well with the transport client. Can you have a look?

@nik9000
Copy link
Member Author

nik9000 commented Aug 15, 2016

Looks like @dadoonet can't review it for a while. So, anyone else want it?

@nik9000
Copy link
Member Author

nik9000 commented Aug 15, 2016

@elasticmachine, retest this

@nik9000
Copy link
Member Author

nik9000 commented Aug 16, 2016

Test failure is caused by the branch point, not the change itself.

@nik9000
Copy link
Member Author

nik9000 commented Aug 16, 2016

Test failure is caused by the branch point, not the change itself.

Rebased. That should help.

@abeyad abeyad self-assigned this Aug 16, 2016
import org.elasticsearch.test.transport.AssertingLocalTransport;
import org.elasticsearch.transport.Transport;
import org.elasticsearch.transport.TransportService;

import java.util.Collections;
Copy link

Choose a reason for hiding this comment

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

No code was added to this test class, only removed, so is this added import necessary?

Copy link

Choose a reason for hiding this comment

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

Nevermind, I see, it was a remnant from the imports up top, just got shifted around

@abeyad
Copy link

abeyad commented Aug 16, 2016

LGTM

The big change here is cleaning up the `TaskListResponse` so it doesn't
have a breaky `toString` implementation. That was causing the reindex
tests to break.

Also removed `NetworkModule#registerTaskStatus` which is part of the
Plugin API. Use `Plugin#getNamedWriteables` instead.
@nik9000 nik9000 merged commit fdd5061 into elastic:master Aug 16, 2016
@nik9000
Copy link
Member Author

nik9000 commented Aug 16, 2016

Merged! Thanks @abeyad !

@lcawl lcawl added :Distributed/CRUD A catch all label for issues around indexing, updating and getting a doc by id. Not search. and removed :Reindex API labels Feb 13, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
>bug :Distributed/CRUD A catch all label for issues around indexing, updating and getting a doc by id. Not search. v5.0.0-beta1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants