Uh oh!
There was an error while loading. Please reload this page.
[SPARK-15359] [Mesos] Mesos dispatcher should handle DRIVER_ABORTED status from mesosDriver.run() - #13143
[SPARK-15359] [Mesos] Mesos dispatcher should handle DRIVER_ABORTED status from mesosDriver.run()#13143devaraj-kavali wants to merge 4 commits into
Conversation
…tatus from mesosDriver.run()
tnachen
commented
Jun 2, 2016
ok to test |
SparkQA
commented
Jun 2, 2016
Test build #59856 has finished for PR 13143 at commit
|
| error = Some(new SparkException("Error starting driver, DRIVER_ABORTED")) | ||
| markErr() | ||
| val ex = new SparkException("Error starting driver, DRIVER_ABORTED") | ||
| // if the driver gets aborted after the successful registration |
There was a problem hiding this comment.
s/after the successful registration/after registration/g
There was a problem hiding this comment.
Also to simplify the code, can we just throw SparkExecption here? Then the catch will then handle all cases
tnachen
commented
Jun 22, 2016
Is it because MesosDriver actually threw an exception? |
MesosDriver doesn't throw any exception, it just returns with the value as Status.DRIVER_ABORTED. This code handles exceptions and throws if it gets Status.DRIVER_ABORTED during registration, once the registration completes there is no code to handle and will be skipped the status and also thread dies. |
SparkQA
commented
Dec 28, 2016
Test build #70648 has finished for PR 13143 at commit
|
devaraj-kavali
commented
Feb 8, 2017
@tnachen Can you check this? |
devaraj-kavali
commented
Feb 27, 2017
mgummelt
commented
Feb 27, 2017
What whole function is designed poorly. We need to totally change it instead of tacking this on. We shouldn't be calling |
devaraj-kavali
commented
Feb 28, 2017
Thanks @mgummelt for the feedback, will update the PR with the function rewrite. |
SparkQA
commented
Apr 18, 2017
Test build #75907 has finished for PR 13143 at commit
|
SparkQA
commented
Apr 18, 2017
Test build #75908 has finished for PR 13143 at commit
|
skonto
commented
Jul 27, 2017
@ArtRand@susanxhuynh could please review this before we call for a merge? |
ArtRand
commented
Sep 21, 2017
@skonto@susanxhuynh@devaraj-kavali are people still interested in this? I was just playing around with this code to clean up ZK state.. Would be happy to try this when I have a few cycles. |
devaraj-kavali
commented
Sep 22, 2017
@ArtRand I think this is still an issue which needs to be merged, do you have any observations with this PR? |
ArtRand
commented
Sep 23, 2017
Hello @devaraj-kavali. Yes. I've been playing around with this because it's inconvenient to clean up ZK whenever you uninstall/reinstall the Dispatcher. The problem is that the only signal of a re-install vs. a failover is when Mesos gives you a |
AmplabJenkins
commented
Jan 18, 2018
Can one of the admins verify this patch? |
HyukjinKwon
commented
Jul 16, 2018
ping @devaraj-kavali for @ArtRand's comment above. |
Closesapache#17422Closesapache#17619Closesapache#18034Closesapache#18229Closesapache#18268Closesapache#17973Closesapache#18125Closesapache#18918Closesapache#19274Closesapache#19456Closesapache#19510Closesapache#19420Closesapache#20090Closesapache#20177Closesapache#20304Closesapache#20319Closesapache#20543Closesapache#20437Closesapache#21261Closesapache#21726Closesapache#14653Closesapache#13143Closesapache#17894Closesapache#19758Closesapache#12951Closesapache#17092Closesapache#21240Closesapache#16910Closesapache#12904Closesapache#21731Closesapache#21095 Added: Closesapache#19233Closesapache#20100Closesapache#21453Closesapache#21455Closesapache#18477 Added: Closesapache#21812Closesapache#21787 Author: hyukjinkwon <gurwls223@apache.org> Closesapache#21781 from HyukjinKwon/closing-prs.
What changes were proposed in this pull request?
When the mesosDriver.run() returns with the status as DRIVER_ABORTED then throwing the exception which can be handled from SparkUncaughtExceptionHandler to shutdown the dispatcher.
How was this patch tested?
I verified it manually, the driver thread throws exception when mesosDriver.run() returns with the DRIVER_ABORTED status.