kennknowles commented on PR #36838: URL: https://github.com/apache/beam/pull/36838#issuecomment-3548775185
Yes, the elements are immutable. But we mutate a local field `FnApiDoFnRunner.currentElement`, here: https://github.com/apache/beam/blob/b369dfa381419ffcf1e3da4cc863a470fca72d2b/sdks/java/harness/src/main/java/org/apache/beam/fn/harness/FnApiDoFnRunner.java#L624 So I think if the lambda is called asynchronously after another element has started processing this field could be set to a different element. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
