Github user tdas commented on a diff in the pull request:
https://github.com/apache/spark/pull/6034#discussion_r30466991
--- Diff:
streaming/src/main/scala/org/apache/spark/streaming/dstream/DStream.scala ---
@@ -338,6 +369,41 @@ abstract class DStream[T: ClassTag] (
}
/**
+ * Wrap a body of code such that the call site and operation scope
+ * information are passed to the RDDs created in this body properly.
+ */
+ protected def createRDDWith[U](time: Time)(body: => U): U = {
--- End diff --
the name is incomplete. `createRDDWith` does not make sense. It has to
`withSomething`. Maybe `withEnv`?
Also why did you change it from `doCompute`? Is there are point in wrapping
whole of `getOrCompute` in this function, rather than just the `compute()`
function as you were doing it earlier with `doCompute`?
---
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]