Skip to content

Conversation

@jerryshao
Copy link
Contributor

What changes were proposed in this pull request?

Changing the default exit state to failed for any application running on yarn cluster mode.

How was this patch tested?

Unit test is done locally.

CC @tgravescs and @vanzin .

@SparkQA
Copy link

SparkQA commented Mar 14, 2016

Test build #53062 has finished for PR 11693 at commit da38bc6.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

// succeeded in the RM UI.
// The default state of ApplicationMaster is failed if it is invoked by shut down hook.
// This behavior is different compared to 1.x version, we guarantee user will not call
// System.exit() at the end of application, so state will be updated before calling
Copy link
Contributor

Choose a reason for hiding this comment

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

I think this comment is a bit confusing. We can't guarantee the user doesn't call System.exit(). I think you mean that spark itself doesn't called it.

Perhaps just remove that and leave the last sentence saying the user shouldn't be calling System.exit(0) on a good shutdown.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks @tgravescs , I will update the comments.

@SparkQA
Copy link

SparkQA commented Mar 15, 2016

Test build #53143 has finished for PR 11693 at commit c41739c.

  • This patch fails MiMa tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@jerryshao
Copy link
Contributor Author

Jenkins, retest this please.

@SparkQA
Copy link

SparkQA commented Mar 15, 2016

Test build #53170 has finished for PR 11693 at commit c41739c.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@vanzin
Copy link
Contributor

vanzin commented Mar 15, 2016

LGTM, merging to master.

@asfgit asfgit closed this in d89c714 Mar 15, 2016
roygao94 pushed a commit to roygao94/spark that referenced this pull request Mar 22, 2016
…led for yarn cluster mode

## What changes were proposed in this pull request?

Changing the default exit state to `failed` for any application running on yarn cluster mode.

## How was this patch tested?

Unit test is done locally.

CC tgravescs and vanzin .

Author: jerryshao <[email protected]>

Closes apache#11693 from jerryshao/SPARK-13642.
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.

4 participants