-
Notifications
You must be signed in to change notification settings - Fork 29.1k
[SPARK-3233] Executor never stop its SparnEnv, BlockManager, ConnectionManager etc. #2138
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
Conversation
|
QA tests have started for PR 2138 at commit
|
|
QA tests have finished for PR 2138 at commit
|
|
QA tests have started for PR 2138 at commit
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The BlockManagerMaster actually exists on executors too. This is the consequence of bad naming, but this class is really the "agent with which the BlockManager (on both executors and the driver) communicates with the driver"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As in, you don't need to stop this only if this is the driver
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As I mentioned below, only one instance of BlockManagerMaster should communicate with driver.
So far, driver itself communicates with DriverActor via SparkContext.stop invoked in user program or ApplicationMaster (Cluster mode).
|
QA tests have finished for PR 2138 at commit
|
|
@andrewor14 Yes, Executor has a instance of BlockManagerMaster but all the important things BlockManagerMaster#stop do is send message "StopBlockManagerMaster" to DriverActor. If we allow Executors to send the message, most of sending should be fail because DriverActor accept at most one message "StopBlockManagerMaster". |
|
QA tests have started for PR 2138 at commit
|
|
QA tests have finished for PR 2138 at commit
|
|
@sarutak This assumes that the only logic in |
|
@andrewor14 Yeah, exactly. I'll try to implement conditional logic in BlockManagerMaster#stop itself. |
…ge when sender is Driver
|
QA tests have started for PR 2138 at commit
|
|
QA tests have finished for PR 2138 at commit
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You don't need to past this to SparkEnv itself. Just pass isDriver to the BlockManagerMaster
|
QA tests have started for PR 2138 at commit
|
|
QA tests have finished for PR 2138 at commit
|
|
QA tests have started for PR 2138 at commit
|
|
QA tests have finished for PR 2138 at commit
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The format should be
class BlockManagerMaster(
var driverActor...
conf:...
isDriver:...
extends Logging {
|
1 minor comment and this LGTM |
|
Thanks @andrewor14 . |
|
QA tests have started for PR 2138 at commit
|
|
QA tests have finished for PR 2138 at commit
|
|
QA tests have started for PR 2138 at commit
|
|
QA tests have finished for PR 2138 at commit
|
|
Jenkins, retest this please. |
|
QA tests have started for PR 2138 at commit
|
|
QA tests have finished for PR 2138 at commit
|
|
The failure was due to PageRank. |
|
Jenkins, retest this please. |
|
QA tests have started for PR 2138 at commit
|
|
QA tests have finished for PR 2138 at commit
|
|
retest this please |
|
QA tests have started for PR 2138 at commit
|
|
QA tests have finished for PR 2138 at commit
|
|
Jenkins, retest this please. |
|
QA tests have started for PR 2138 at commit
|
|
QA tests have finished for PR 2138 at commit
|
|
Thanks I merged this into master |
…onManager etc. Author: Kousuke Saruta <sarutak@oss.nttdata.co.jp> Closes apache#2138 from sarutak/SPARK-3233 and squashes the following commits: c0205b7 [Kousuke Saruta] Merge branch 'SPARK-3233' of github.com:sarutak/spark into SPARK-3233 064679d [Kousuke Saruta] Merge branch 'master' of git://git.apache.org/spark into SPARK-3233 d3005fd [Kousuke Saruta] Modified Class definition format of BlockManagerMaster 039b747 [Kousuke Saruta] Modified style 889e2d1 [Kousuke Saruta] Modified BlockManagerMaster to be able to be past isDriver flag 4da8535 [Kousuke Saruta] Modified BlockManagerMaster#stop to send StopBlockManagerMaster message when sender is Driver 6518c3a [Kousuke Saruta] Merge branch 'master' of git://git.apache.org/spark into SPARK-3233 d5ab19a [Kousuke Saruta] Merge branch 'master' of git://git.apache.org/spark into SPARK-3233 6bce25c [Kousuke Saruta] Merge branch 'master' of git://git.apache.org/spark into SPARK-3233 6058a58 [Kousuke Saruta] Modified Executor not to invoke SparkEnv#stop in local mode e5ad9d3 [Kousuke Saruta] Modified Executor to stop SparnEnv at the end of itself
No description provided.