Uh oh!
There was an error while loading. Please reload this page.
[SPARK-7831][Mesos] Added flag to shutdown driver when mesos dispatch… - #10701
[SPARK-7831][Mesos] Added flag to shutdown driver when mesos dispatch…#10701nraychaudhuri wants to merge 2 commits into
Conversation
nraychaudhuri
commented
Jan 13, 2016
There was a problem hiding this comment.
Instead of killing without failover, we could also start it without failover.
In the start method, to use:
valdriver= createSchedulerDriver(
master,
MesosClusterScheduler.this,
Utils.getCurrentUserName(),
appName,
conf,
Some(frameworkUrl),
Some(driverFailOver), // <-- with or without checkpoint dataSome(if (driverFailOver) Double.MaxValueelse0.0), // <-- timeout for failover recovery
fwId)tnachen
commented
Jan 14, 2016
jenkins please test |
tnachen
commented
Jan 14, 2016
Besides what @skyluc and my comments I think this patch LGTM. Have you tested this btw? |
nraychaudhuri
commented
Jan 14, 2016
Yes. I have tested this and it seems to work. I will make the necessary changes |
dragos
commented
Jan 26, 2016
ok to test |
dragos
commented
Jan 26, 2016
I confirm that the framework deregisters from Mesos. However, I don't see the old behavior anymore, where the framework stays even after stopping it. The new flag seems to have no effect. The framework is gone. |
SparkQA
commented
Jan 26, 2016
Test build #50096 has finished for PR 10701 at commit
|
tnachen
commented
Feb 14, 2016
@dragos you mean the framework no longer shows up in the UI? the console output doesn't seem to suggest it's gone. |
dragos
commented
Feb 14, 2016
|
tnachen
commented
Mar 2, 2016
I've tested this myself and is indeed now doing the correct behavior when not adding the flag in. I'll need to dig more, @nraychaudhuri have you tried this as well? |
tnachen
commented
Mar 4, 2016
I just found out that this is actually a bug in Mesos, where we cannot store a duration that's larger than int64_t. I filed a Mesos jira for this (https://issues.apache.org/jira/browse/MESOS-4862). |
andrewor14
commented
Mar 29, 2016
OK, let's not add a flag if it's a bug in Mesos. In the mean time before they fix it downstream we can use the workaround @tnachen suggested. |
dragos
commented
Mar 30, 2016
Sounds good. Who can close this PR? |
andrewor14
commented
Mar 30, 2016
@nraychaudhuri can you close this PR? |
tnachen
commented
Apr 19, 2016
@andrewor14@nraychaudhuri@dragos Sorry I'm not suggesting we close this PR, we still need the flag since we want to be able to either failover automatically or not. We only need to revert the particular line of change where the PR changed the timeout to DOUBLE.MAX_VALUE |
srowen
commented
May 6, 2016
@nraychaudhuri can you update or close this PR then? |
tnachen
commented
May 10, 2016
Seems like @nraychaudhuri is busy, I'll take this PR and update it myself. We definitely need this to be merged as it's quite useful for testing. |
Closing the following PRs due to requests or unresponsive users. Closesapache#13923Closesapache#14462Closesapache#13123Closesapache#14423 (requested by srowen) Closesapache#14424 (requested by srowen) Closesapache#14101 (requested by jkbradley) Closesapache#10676 (requested by srowen) Closesapache#10943 (requested by yhuai) Closesapache#9936Closesapache#10701
Fix for SPARK-7831