Github user JoshRosen commented on the pull request:
https://github.com/apache/spark/pull/8873#issuecomment-142442505
@davies, I was puzzled about why `UnsafeRowSerializer` didn't fail with
similar exceptions when re-ordering serialized rows using the
PartitionedSerializedPairBuffer. It turns out that the ExternalSorter's
serialized shuffle sort path ends up using a DiskBlockObjectWriter in such a
way that the serializer instance's `close()` method is called when closing the
writer. The `UnsafeShuffleWriter`, on the other hand, uses a different write
path which does not do this, leading to the error that you saw.
---
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]