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(#252;#258): ensure terminating worker with error before delete fail event #275

Merged
merged 2 commits into from
Dec 1, 2017

Conversation

LiangXugang
Copy link

@LiangXugang LiangXugang commented Nov 30, 2017

Fixes ISSUE-252 ISSUE-258

Changes

  • get workerInfo before worker.Do()

Reviewers

Checklist

  • Rebased/mergable
  • Tests pass
  • Issue/task done

@@ -242,6 +241,9 @@ func createVersionHandler(event *api.Event) error {
return err
}

// set worker info to event
event.Worker = worker.GetWorkerInfo()
Copy link
Member

Choose a reason for hiding this comment

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

Also need to change createServiceHandler()

@caicloud-bot
Copy link
Collaborator

Can one of the admins verify this patch?

@LiangXugang LiangXugang changed the title fix(#252): ensure terminating worker before delete fail event fix(#252): ensure terminating worker with error before delete fail event Dec 1, 2017
@LiangXugang LiangXugang changed the title fix(#252): ensure terminating worker with error before delete fail event fix(#252;#258): ensure terminating worker with error before delete fail event Dec 1, 2017
Copy link
Member

@supereagle supereagle left a comment

Choose a reason for hiding this comment

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

LGTM

@supereagle supereagle merged commit d9cc66e into caicloud:v1-preview Dec 1, 2017
@LiangXugang LiangXugang deleted the etcdWrong branch December 5, 2017 10:23
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.

3 participants