Uploaded image for project: 'Beam'
  1. Beam
  2. BEAM-5526

Make ByteBuddyDoFnInvokerFactory injection strategy configurable + drop the singleton

Details

    • Improvement
    • Status: Resolved
    • P2
    • Resolution: Won't Fix
    • None
    • Not applicable
    • sdk-java-core

    Description

      org.apache.beam.sdk.transforms.reflect.DoFnInvokers + DoFnInvokerFactory design is to be a SPI to let user plug their own bytecode manipulation library, however in practise beam uses ByteBuddyDoFnInvokerFactory as a singleton which makes all this design useless.

      ByteBuddyDoFnInvokerFactory is also not configurable at all - typically the injection strategy so it assumes it runs in an environment and on a JVM where it will work - it does not on java 11 for instance.

      This ticket is about fixing all these small inconsistency and blocker to tun on java 11.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              romain.manni-bucau Romain Manni-Bucau
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: