-
Notifications
You must be signed in to change notification settings - Fork 28.5k
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-34520][CORE] Remove unused SecurityManager references #31636
Conversation
core/src/main/scala/org/apache/spark/metrics/sink/PrometheusServlet.scala
Outdated
Show resolved
Hide resolved
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.
Seems fine if tests pass and it's just removing unneeded references
Test build #135423 has finished for PR 31636 at commit
|
core/src/main/scala/org/apache/spark/metrics/MetricsSystem.scala
Outdated
Show resolved
Hide resolved
+1 for the proposal. Looks correct. |
c0f7203
to
e504096
Compare
Kubernetes integration test starting |
Kubernetes integration test status failure |
e504096
to
758cede
Compare
758cede
to
a99696c
Compare
Addressed comments and resolved the conflicts. |
core/src/main/scala/org/apache/spark/broadcast/BroadcastManager.scala
Outdated
Show resolved
Hide resolved
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.
+1, LGTM (only one indentation comment)
Test build #135444 has finished for PR 31636 at commit
|
Merged to master. Thanks! |
Thank you @dongjoon-hyun! |
Test build #135446 has finished for PR 31636 at commit
|
### What changes were proposed in this pull request? This is a followup of #31636. There was one place missed in `GangliaSink`, and we should also remove `SecurityManager`. ### Why are the changes needed? To make `GangliaSink` work. ### Does this PR introduce _any_ user-facing change? No. ### How was this patch tested? It was found in the internal it tests in the company I work for. Closes #31688 from HyukjinKwon/SPARK-34520-followup. Authored-by: HyukjinKwon <[email protected]> Signed-off-by: HyukjinKwon <[email protected]>
Unfortunately, I missed that this is a breaking change due to the following. val sink = Utils.classForName[Sink](classPath)
- .getConstructor(
- classOf[Properties], classOf[MetricRegistry], classOf[SecurityManager])
- .newInstance(kv._2, registry, securityMgr)
+ .getConstructor(classOf[Properties], classOf[MetricRegistry])
+ .newInstance(kv._2, registry) |
I'll make a PR. |
What changes were proposed in this pull request?
This is kind of a followup of #24033 and #30945.
Many of references in
SecurityManager
were introduced from SPARK-1189, and related usages were removed later from #24033 and #30945. This PR proposes to remove them out.Why are the changes needed?
For better readability of codes.
Does this PR introduce any user-facing change?
No, dev-only.
How was this patch tested?
Manually complied. GitHub Actions and Jenkins build should test it out as well.