Github user stephenh commented on the pull request:
https://github.com/apache/spark/pull/5223#issuecomment-87038543
@srowen I waffled on the utility method, but went with it only because
putting the logic inline with the writer.write/writer.close logic made it
pretty horribly to read. That finally/try/finally is not exactly pretty.
Sure, I can scan for other places in the codebase that are obvious for
this; although I'm tempted to think the opposite, in that I think I'd almost
always want this "don't suppress the real exception" behavior, vs. hiding what
really happened.
---
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]