Github user marmbrus commented on the pull request:
https://github.com/apache/spark/pull/142#issuecomment-38754790
This bit me again, so I'm coming back to it. I changed the check based on
Matei's suggestion. I also briefly investigated if there was more information
in a `KryoException` that we could use instead. Sadly, it does not look like
there is. I guess they assume you will do your own bookkeeping about how many
object to deserialize, so consider this a "real" error, not EOF.
---
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.
---