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

Empty pipeline options can be gracefully serialized/deserialized

Details

    • Bug
    • Status: Resolved
    • P3
    • Resolution: Fixed
    • None
    • Not applicable
    • runner-core
    • None

    Description

      PipelineOptionsTranslation.fromProto currently crashes with a NullPointerException when passed an empty options Struct. This is due to ProxyInvocationHandler.Deserializer expecting a non-empty enclosing Struct.

      Empty pipeline options may be passed by SDKs interacting with a job server, so this case needs to be handled. Note that testing a round-trip of an effectively-empty Java PipelineOptions object is not sufficient to catch this because "empty" Java options still contain default fields not defined in other SDKs.

      Attachments

        Issue Links

          Activity

            People

              bsidhom Ben Sidhom
              bsidhom Ben Sidhom
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1h 20m
                  1h 20m