-
Notifications
You must be signed in to change notification settings - Fork 28.3k
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
[Spark-3490] Disable SparkUI for tests #2363
Conversation
QA tests have started for PR 2363 at commit
|
QA tests have finished for PR 2363 at commit
|
QA tests have started for PR 2363 at commit
|
private[spark] val ui = new SparkUI(this) | ||
ui.bind() | ||
private[spark] val ui: Option[SparkUI] = | ||
if (conf.getBoolean("spark.ui.enabled", true)) { |
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.
is this meant for the user to set? If so we should document. If not perhaps we should start naming internal configs internal. or test. for testing ones.
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.
I don't see a particularly strong use case for the user to disable the UI, so I think we should keep this internal.
QA tests have finished for PR 2363 at commit
|
QA tests have started for PR 2363 at commit
|
There are two old JIRAs that seem relevant:
|
Oops, thanks @JoshRosen. Mine seems to be a duplicate. |
@tdas I made a few changes in the streaming code to get this to work, can you verify? |
QA tests have finished for PR 2363 at commit
|
QA tests have started for PR 2363 at commit
|
LGTM from the streaming UI point of view. Though I would run the ignored UI tests locally to make sure we havent broken anything. |
QA tests have finished for PR 2363 at commit
|
QA tests have started for PR 2363 at commit
|
QA tests have finished for PR 2363 at commit
|
I have tested the ignore tests locally and they pass. I am merging this into master and 1.1, thanks. |
We currently open many ephemeral ports during the tests, and as a result we occasionally can't bind to new ones. This has caused the `DriverSuite` and the `SparkSubmitSuite` to fail intermittently. By disabling the `SparkUI` when it's not needed, we already cut down on the number of ports opened significantly, on the order of the number of `SparkContexts` ever created. We must keep it enabled for a few tests for the UI itself, however. Author: Andrew Or <andrewor14@gmail.com> Closes #2363 from andrewor14/disable-ui-for-tests and squashes the following commits: 332a7d5 [Andrew Or] No need to set spark.ui.port to 0 anymore 30c93a2 [Andrew Or] Simplify streaming UISuite a431b84 [Andrew Or] Fix streaming test failures 8f5ae53 [Andrew Or] Fix no new line at the end 29c9b5b [Andrew Or] Disable SparkUI for tests (cherry picked from commit 6324eb7) Signed-off-by: Andrew Or <andrewor14@gmail.com> Conflicts: pom.xml yarn/common/src/main/scala/org/apache/spark/deploy/yarn/ApplicationMaster.scala yarn/common/src/main/scala/org/apache/spark/scheduler/cluster/YarnClientSchedulerBackend.scala
@andrewor14 what about my comment? |
To clarify I suggested possibly naming the config with .internal. In the very least I think we should put a comment by it saying so in case other users see it and add documentation or start using it. Personally I see configs are user interfaces. If we don't make it clear they are internal they people can start using them and we can't remove them again. Perhaps others disagree but we should decide as community what the policy is. |
@tgravescs Sorry I wasn't clear. There are tons of other configs in Spark that we do not intend to expose, like As for renaming the configs to |
@andrewor14 ok I filed https://issues.apache.org/jira/browse/SPARK-3508. Please make sure all user concerns are addressed before committing. I would have like to see at least a comment added here. |
@andrewor14 this seems to also be causing a compilation error on branch-1.1: core/src/main/scala/org/apache/spark/scheduler/cluster/SimrSchedulerBackend.scala:46: not found: type Configuration |
Oops thanks, this is fixed in #2372. |
Original PR: apache#2363 Author: Andrew Or <andrewor14@gmail.com> Closes apache#2415 from andrewor14/disable-ui-for-tests-1.1 and squashes the following commits: 8d9df5a [Andrew Or] Oops, missed one. 509507d [Andrew Or] Backport apache#2363 (SPARK-3490) into branch-1.1
We currently open many ephemeral ports during the tests, and as a result we occasionally can't bind to new ones. This has caused the
DriverSuite
and theSparkSubmitSuite
to fail intermittently.By disabling the
SparkUI
when it's not needed, we already cut down on the number of ports opened significantly, on the order of the number ofSparkContexts
ever created. We must keep it enabled for a few tests for the UI itself, however.Branch-1.2 #2363 (this PR, original)
Branch-1.1 #2415
Branch-1.0 #3959
Branch-0.9 #3961