Github user srowen commented on the pull request:
https://github.com/apache/spark/pull/11257#issuecomment-187827789
Another way to avoid blocking in `finalize` is to not do the work in the
finalizer. It's as simple as making an idempotent "close" or "cleanup" method
that does nothing if it has already been disposed. ... are these broadcasts not
otherwise cleaned up?
To the extent they're rarely used, is this a problem?
My concern is that you're simply reimplementing a separate 'finalizer'
queue with all the associated complexity.
---
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]