Skip to content
This repository has been archived by the owner on Aug 4, 2022. It is now read-only.

[REEF-1428] Validate Task Stop failure => FailedTask Event #1038

Closed
wants to merge 2 commits into from

Conversation

afchung
Copy link
Contributor

@afchung afchung commented Jun 8, 2016

This addressed the issue by

  • Writing a test to validate that a Task Stop failure triggers a FailedTask Event.
  • Adding helper test classes.
  • Moving the call to TaskStop prior to setting the result of the Task.
  • Validating that Task close is only called if the Task has not ended.
  • Inject all ITaskStart and ITaskStop.

JIRA:
REEF-1428

This addressed the issue by
  * Writing a test to validate that a Task Stop failure triggers a FailedTask Event.
  * Adding helper test classes.
  * Moving the call to TaskStop prior to setting the result of the Task.
  * Inject all ITaskStart and ITaskStop.

JIRA:
  [REEF-1428](https://issues.apache.org/jira/browse/REEF-1428)
{
stopHandler.OnNext(_taskStop.Value);
throw new TaskStopHandlerException("Encountered Exception on TaskStopHandler.", e);
Copy link
Contributor

@jwang98052 jwang98052 Jun 8, 2016

Choose a reason for hiding this comment

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

Why catch exception in Stop but not start? Any specific exception you would expect?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Start is addressed in another JIRA.

Copy link
Contributor

Choose a reason for hiding this comment

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

Do we serialize TaskStopHandlerException to evalautor or eventually replaced it with SystemException in ContextRuntime? This is actually the exception from client's handler, right?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is the client's Exception. We serialize the client's Exception using InnerException, as seen in TaskRuntime.cs.

@jwang98052
Copy link
Contributor

I completed a pass.

@afchung
Copy link
Contributor Author

afchung commented Jun 9, 2016

@jwang98052 I've addressed your comments, please have another look. Thanks!

@jwang98052
Copy link
Contributor

LGTM. I will test and merge.

@asfgit asfgit closed this in d6dbea6 Jun 9, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
2 participants