Github user koeninger commented on the issue:
https://github.com/apache/spark/pull/14372
I generally try to write my code the way Sean suggested (single foreachRDD)
whenever possible.
Sounds like if the transformation isn't guaranteed to run before the
foreachRDD later in the chain, this needs to be changed to blocking on a
concurrent queue or something.
This kind of points out a longer-term issue that the code snippets in docs
don't necessarily even have to compile, much less work correctly. Would be
nice to extract them from tests.
---
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]