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

Teach reindex to stop when cancelled #16613

Merged
merged 1 commit into from
Feb 11, 2016

Conversation

nik9000
Copy link
Member

@nik9000 nik9000 commented Feb 11, 2016

All we do is check the cancelled flag and stop the request at a few key
points.

Adds the cancellation cause to the status so any request that is cancelled
but doesn't die can be seen in the task list.

@nik9000
Copy link
Member Author

nik9000 commented Feb 11, 2016

@dakrone and @imotov this is for you to review I think.

@nik9000 nik9000 added the review label Feb 11, 2016
@nik9000 nik9000 mentioned this pull request Feb 11, 2016
5 tasks
/**
* The reason the task was cancelled or null if it hasn't been cancelled.
*/
public String getReasonCancelled() {
Copy link
Member

Choose a reason for hiding this comment

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

may want to annotate with @Nullable

@nik9000
Copy link
Member Author

nik9000 commented Feb 11, 2016

@dakrone I did all the things!

@dakrone
Copy link
Member

dakrone commented Feb 11, 2016

LGTM, thanks Nik!

All we do is check the cancelled flag and stop the request at a few key
points.

Adds the cancellation cause to the status so any request that is cancelled
but doesn't die can be seen in the task list.
@nik9000 nik9000 merged commit 30107b4 into elastic:feature/reindex Feb 11, 2016
@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
:Distributed/CRUD A catch all label for issues around indexing, updating and getting a doc by id. Not search.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants