Uh oh!
There was an error while loading. Please reload this page.
[SPARK-12961][CORE][FOLLOW-UP] Remove wrapper code for SnappyOutputStream - #18949
[SPARK-12961][CORE][FOLLOW-UP] Remove wrapper code for SnappyOutputStream#18949maropu wants to merge 1 commit into
Conversation
maropu
commented
Aug 15, 2017
Probably, we forgot to remove this when upgrading |
maropu
commented
Aug 15, 2017
Also, we could safely remove the code (commit: 5936bf9) to avoid memory leak in |
SparkQA
commented
Aug 15, 2017
Test build #80673 has finished for PR 18949 at commit
|
kiszk
commented
Aug 15, 2017
LGTM |
viirya
commented
Aug 16, 2017
@maropu There is another reason we leave the workaround in place: #11524 (comment) |
viirya
commented
Aug 16, 2017
LGTM |
maropu
commented
Aug 16, 2017
@viirya aha, ok. thanks. (btw, since the comment is still important, we better keep it in code comment, maybe). |
maropu
commented
Aug 17, 2017
ping |
srowen
commented
Aug 18, 2017
Previously, the concern was that this workaround was still necessary because the runtime environment might have a different snappy version from the one Spark uses. I thought that was because Hadoop provides it, but, I am not sure that's true? I can't see a dependency on it in Hadoop, and I think this is likely OK, but wonder if I'm missing something @viirya as you commented on it? |
If I understand the previous comment #11524 (comment) correctly, seems it is happened before snappy-java get downgraded by user code when the user classpath takes precedence. I am not sure where the snappy-java comes from, I don't know if it is Hadoop, maybe other library in user classpath? If we don't shade this dep, maybe we still keep it for safety? |
srowen
commented
Aug 18, 2017
Hm, if the risk is only that the user classpath might have an older version, then at some point that's an acceptable risk. There are many problems like that, and this version has been out for over a year. Still, if it's not causing us problems except for a bit of extra code, we could also just err on the side of caution and push this out another 6-12 months or something. |
viirya
commented
Aug 18, 2017
Ok. It sounds reasonable to me. |
maropu
commented
Aug 18, 2017
Sounds good to me ,too. |
Closesapache#18522Closesapache#17722Closesapache#18879Closesapache#18891Closesapache#18806Closesapache#18948Closesapache#18949Closesapache#19070Closesapache#19039Closesapache#19142Closesapache#18515Closesapache#19154Closesapache#19162Closesapache#19187
Closesapache#18522Closesapache#17722Closesapache#18879Closesapache#18891Closesapache#18806Closesapache#18948Closesapache#18949Closesapache#19070Closesapache#19039Closesapache#19142Closesapache#18515Closesapache#19154Closesapache#19162Closesapache#19187Closesapache#19091 Author: Sean Owen <sowen@cloudera.com> Closesapache#19203 from srowen/CloseStalePRs3.
What changes were proposed in this pull request?
This pr removed the wrapper code (commit: f2cc6b5) to avoid the bug in
SnappyOutputStream.close()because the corresponding bug has been fixed insnappy-java-1.1.2.6that Spark currently uses. This fix has been merged insnappy-java-1.1.2and see xerial/snappy-java#107 (comment).How was this patch tested?
Checked
UnsafeShuffleWriterSuitepassed.