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

Include TASK_FINISHED as failure state when upgrading #4865

Merged
merged 1 commit into from Dec 23, 2016

Conversation

fengyehong
Copy link
Contributor

If we upgrade an app with health check, and newly launched task
finished before passing health check, the current task replace actor
ignore this TASK_FINISHED message and run into a strange state:

  1. it waits for task status update event, but it won't get any;
  2. it won't try to launch a new task.

@review-ninja
Copy link

ReviewNinja

@mesosphere-ci
Copy link
Collaborator

Can one of the admins verify this patch?

1 similar comment
@mesosphere-ci
Copy link
Collaborator

Can one of the admins verify this patch?

@fengyehong
Copy link
Contributor Author

Issue #4866

Copy link
Contributor

@jeschkies jeschkies left a comment

Choose a reason for hiding this comment

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

Looks good to me. @zen-dog you are on call next, could take a look as well?

Copy link
Contributor

@zen-dog zen-dog left a comment

Choose a reason for hiding this comment

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

Looks good. Minor change requested.

@@ -138,7 +138,7 @@ object TaskReplaceActor {
private[this] val log = LoggerFactory.getLogger(getClass)

val KillComplete = "^TASK_(ERROR|FAILED|FINISHED|LOST|KILLED)$".r
Copy link
Contributor

Choose a reason for hiding this comment

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

Since KillComplete and FailedToStart are now equal, I would use one and call it smth. like IsTerminal.

If we upgrade an app with health check, and newly launched task
finished before passing health check, the current task replace actor
ignore this TASK_FINISHED message and run into a strange state:
  1. it waits for task status update event, but it won't get any;
  2. it won't try to launch a new task.
@fengyehong
Copy link
Contributor Author

updated, replace FailedToStart and KillComplete with IsTerminal

@aquamatthias
Copy link
Contributor

ok to test

@fengyehong
Copy link
Contributor Author

test this please

@fengyehong
Copy link
Contributor Author

retest this please

@zen-dog zen-dog merged commit 90843e4 into mesosphere:releases/1.3 Dec 23, 2016
@janisz janisz mentioned this pull request Jan 18, 2017
@marcomonaco marcomonaco added the pr label Mar 6, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants