GitHub user liyintang opened a pull request:
https://github.com/apache/spark/pull/11921
[SPARK-14105] Deep copy each kafka message for serialization
## What changes were proposed in this pull request?
Due to serialization issue described in SPARK-14105, this PR is to deep
copy each Kafka message if the storage is not None. The new iterator won't
reference to the underlying ByteBuffer in ByteBufferMessageSet. Therefore,
serializer won't serialize the entire byte[] of FetchResponse for each message.
## How was this patch tested?
manual an integration test
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/liyintang/spark SPARK-14105
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/11921.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 #11921
----
commit 081e9477e303a11d72b97efa1ea249c822c01020
Author: Liyin Tang <[email protected]>
Date: 2016-03-23T21:32:56Z
Deep copy each kafka message if storage level is not none
----
---
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]