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

More robust application cleanup, attempt retries #122

Merged
merged 3 commits into from Dec 22, 2018

Conversation

jcrist
Copy link
Owner

@jcrist jcrist commented Dec 21, 2018

This fixes two issues:

  1. The application directory is cleaned up on application exit, regardless if its a clean exit or one due to failure/being killed. This is accomplished using a shutdown hook.

  2. The application only cleans up/unregisters if:

    • The application succeeds
    • There are no more retry attempts available

    This allows applications to automatically retry on failure up to the global retry limit (part of the YARN configuration).

This fixes two issues:

1. The application directory is cleaned up on application exit,
   regardless if its a clean exit or one due to failure/being killed.
   This is accomplished using a shutdown hook.

2. The application only cleans up/unregisters if:
   - The application succeeds
   - There are no more retry attempts available
   This allows applications to automatically retry on failure up to the
   global retry limit (part of the YARN configuration).
@jcrist jcrist merged commit 1a9ff0d into master Dec 22, 2018
@jcrist jcrist deleted the cleanup-and-max-attempts branch December 22, 2018 01:27
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

1 participant