GitHub user rangadi opened a pull request:

    https://github.com/apache/beam/pull/2369

    [BEAM-1837] Fix NPE in KafkaIO writer.

    `KafkaIO.writer()...values()` does not require user to set key coder since 
the key always null.
    Validation passes, but it results in an NPE at runtime when the writer is
    tries to instantiates the producer. Set key coder to 'NullOnlyCoder'.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/rangadi/incubator-beam sink

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/beam/pull/2369.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #2369
    
----
commit 7ddec2c492201e1f9f7aeb358403b798bb7235f1
Author: Raghu Angadi <rang...@google.com>
Date:   2017-03-30T06:21:54Z

    Fix NPE in Kafka value writer.
    
    KafkaIO.writer()...values() does not require user to set key coder since 
the key always null.
    Validation passes, but it results in an NPE at runtime when the writer is
    tries to instantiates the producer. Set key coder to 'NullOnlyCoder'.

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to