You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@beam.apache.org by "Ben Sidhom (JIRA)" <ji...@apache.org> on 2018/04/13 17:46:00 UTC

[jira] [Created] (BEAM-4069) Empty pipeline options can be gracefully serialized/deserialized

Ben Sidhom created BEAM-4069:
--------------------------------

             Summary: Empty pipeline options can be gracefully serialized/deserialized
                 Key: BEAM-4069
                 URL: https://issues.apache.org/jira/browse/BEAM-4069
             Project: Beam
          Issue Type: Bug
          Components: runner-core
            Reporter: Ben Sidhom
            Assignee: Ben Sidhom


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.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)