Uh oh!
There was an error while loading. Please reload this page.
[Spark-14686] Allow setting local properties that are not inheritable - #12456
[Spark-14686] Allow setting local properties that are not inheritable#12456marcintustin wants to merge 4 commits into
Conversation
marcintustin
commented
Apr 17, 2016
I should add that this will also need new tests. I haven't added any, again pending overall agreement on design. |
rxin
commented
Apr 17, 2016
Can you add a more descriptive title? |
rxin
commented
Apr 17, 2016
The title should probably just be "[SPARK-14686] Allow setting local properties that are not inheritable" |
marcintustin
commented
Apr 17, 2016
@rxin Derp on my part. Of course this needs a better title. |
AmplabJenkins
commented
Apr 18, 2016
Can one of the admins verify this patch? |
rxin
commented
Apr 18, 2016
cc @jerryshao I just talked to @JoshRosen more and thinking whether we should make this always non-inheritable. Josh said Jerry might've added something in the past that relied on this. @jerryshao can you comment on whether it would be a problem if we make this always non-inheritable and always explicitly pass properties over in spawned threads? |
jerryshao
commented
Apr 19, 2016
Hi @rxin , the reason to use inheritable variable is for some scenarios like Spark Streaming + FIFO scheduling, the property of pool is set in parent thread (main thread) and be picked in child thread (job thread). Basically if the creation of If there's other solution to solve this issue, I fully agree with the change to non-inheritable variables. |
marcintustin
commented
Apr 21, 2016
Can you explain what you mean by that? Or link us to some code? It's totally possible that it is impossible, or that it's possible. |
jerryshao
commented
Apr 21, 2016
For example, if you have a main thread to create a |
mtustin-handy
commented
Apr 21, 2016
@jerryshao Makes sense. Would having an explicitly inheritable facility, or a way to switch the spark context into inheritable mode (whatever that design looks like - e.g. a subclass or facade object) meet the need? |
HyukjinKwon
commented
Jun 2, 2017
Hi @marcintustin and all, where are we on this? is this still active? |
marcintustin
commented
Jun 2, 2017
via email
I am not actively working on this.
-- Marcin Tustin
Tel: +1 917 553 3974 |
I just want to be sure. Is it waiting for reviewer's comment or you just happened to don't have some time to keep this up-to-date for now? If it is the latter case, I think we could leave this closed for now. We can reopen this whenever you have some time. |
marcintustin
commented
Jun 2, 2017
via email
Feel free to close
-- Marcin Tustin
Tel: +1 917 553 3974 |
# What changes were proposed in this pull request? This PR proposes to close stale PRs, mostly the same instances with apache#18017Closesapache#11459Closesapache#13833Closesapache#13720Closesapache#12506Closesapache#12456Closesapache#12252Closesapache#17689Closesapache#17791Closesapache#18163Closesapache#17640Closesapache#17926Closesapache#18163Closesapache#12506Closesapache#18044Closesapache#14036Closesapache#15831Closesapache#14461Closesapache#17638Closesapache#18222 Added: Closesapache#18045Closesapache#18061Closesapache#18010Closesapache#18041Closesapache#18124Closesapache#18130Closesapache#12217 Added: Closesapache#16291Closesapache#17480Closesapache#14995 Added: Closesapache#12835Closesapache#17141 ## How was this patch tested? N/A Author: hyukjinkwon <gurwls223@gmail.com> Closesapache#18223 from HyukjinKwon/close-stale-prs.
What changes were proposed in this pull request?
This PR adds a uninheritableLocalPropertyFacility and ports sql.execution.id to be set with that facility.
If this is to go forward, the changes should probably be folded into a Properties type which accommodates hierarchical access rather than a tuple.
How was this patch tested?
Running tests.
@rxin@JoshRosen PR opened for comments. As noted above, this should probably have a little more engineering done, but I'd like to (a) get feedback on the overall approach; and (b) see which tests fail in jenkins, as I have some tests failing locally which may or may not be bogus.