-
Notifications
You must be signed in to change notification settings - Fork 29k
SPARK-4843 [YARN] Squash ExecutorRunnableUtil and ExecutorRunnable #3696
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
|
Test build #24449 has started for PR 3696 at commit
|
|
Test build #24449 has finished for PR 3696 at commit
|
|
Test FAILed. |
|
Hmm.. tests failed but I'm not sure they are related to this change. Am I missing something? |
|
@ksakellis This test has been failing for lots of recent builds and is not related to this PR. After it's resolved you can ask Jenkins to test again. |
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.
Adding the type here is not really necessary (although it makes things more consistent). But I'd suggest just removing this variable altogether, and rename the constructor parameter instead).
|
A couple of minor nits, and I assume this is mostly code motion, so it LGTM. |
|
Test build #24502 has started for PR 3696 at commit
|
|
Test build #24502 has finished for PR 3696 at commit
|
|
Test PASSed. |
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.
In the old code, prepareEnvironment was called after yarnConf had been assigned:
trait ExecutorRunnableUtil extends Logging {
val yarnConf: YarnConfiguration
val sparkConf: SparkConf
lazy val env = prepareEnvironmentHere, though, env appears before yarnConf. I don't think that this is a problem here since env is a lazy val, but I wonder if we should move it as late in the vals section as possible so that its dependencies are declared before it can run.
|
I downloaded this and used vimdiff to confirm that this is just code movement. Left one super-minor comment about the re-ordering of two statements in the constructor. Aside from that comment, this looks good to me. |
ExecutorRunnableUtil is a parent of ExecutorRunnable because of the yarn-alpha and yarn-stable split. Now that yarn-alpha is gone, this commit squashes the unnecessary hierarchy.
c6f9395 to
486716f
Compare
|
@JoshRosen yup, moved lazy val env = prepareEnvironment to be last statement so it is the same as before. |
|
Test build #25078 has started for PR 3696 at commit
|
|
Test build #25078 has finished for PR 3696 at commit
|
|
Test PASSed. |
|
LGTM, so I'm going to merge this into |
ExecutorRunnableUtil is a parent of ExecutorRunnable because of the yarn-alpha and yarn-stable split. Now that yarn-alpha is gone, this commit squashes the unnecessary hierarchy. The methods from ExecutorRunnableUtil are added as private.