GitHub user JoshRosen opened a pull request:
https://github.com/apache/spark/pull/6176
[SPARK-7660] Wrap SnappyOutputStream to work around snappy-java bug
This patch wraps `SnappyOutputStream` to ensure that `close()` is
idempotent and to guard against write-after-`close()` bugs. This is a
workaround for https://github.com/xerial/snappy-java/issues/107, a bug where a
non-idempotent `close()` method can lead to stream corruption. We can remove
this workaround if we upgrade to a snappy-java version that contains my fix for
this bug, but in the meantime this patch offers a backportable Spark fix.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/JoshRosen/spark SPARK-7660-wrap-snappy
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/6176.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #6176
----
commit 8b77aaec1424c87ee9918803a30201ce06418862
Author: Josh Rosen <[email protected]>
Date: 2015-05-15T06:44:29Z
Wrap SnappyOutputStream to fix SPARK-7660
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]