Uploaded image for project: 'Crunch'
  1. Crunch
  2. CRUNCH-499

DoFns.detach(...) does not propogate context to wrapped DoFn

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 0.12.0
    • Fix Version/s: 0.12.0
    • Component/s: Core
    • Labels:
      None

      Description

      When wrapping a DoFn in DoFns.detach(), the context does not get passed down to the enclosing DoFn when setContext is invoked, meaning counter incrementing and other features which rely on the context being available don't work as expected. This needs to be patched to make setContext change the context of both the wrapper and the delegate DoFn.

        Attachments

          Activity

            People

            • Assignee:
              jwills Josh Wills
              Reporter:
              davw David Whiting
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: