[ 
https://issues.apache.org/jira/browse/KAFKA-3936?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Matthias J. Sax updated KAFKA-3936:
-----------------------------------
    Description: 
Currently, parameters handed in by the user via public API, are not validated. 
For example {{stream.to(null)}} would fail when the underlying producer gets 
instantiated. This result in a stack trace from deep down in the library, 
making it hard to reason about the problem for the user.

We want to check all given user parameters as early as possible and raise 
corresponding (and helpful!) exceptions to explain users what the problem is, 
and how to fix it. All parameter checks should get unit tested.

  was:
Currently, parameters handed in by the user via public API, are not validated. 
For example {{stream.to(null)}} would fail when the underlying producer gets 
instantiated. This result in a stack trace from deep down in the library, 
making it hard to reason about the problem for the user.

We want to check all given user parameters as early as possible and raise 
corresponding (and helpful!) exceptions to explain users what the problem is, 
and how to fix it.


> Validate user parameters as early as possible
> ---------------------------------------------
>
>                 Key: KAFKA-3936
>                 URL: https://issues.apache.org/jira/browse/KAFKA-3936
>             Project: Kafka
>          Issue Type: Improvement
>          Components: streams
>            Reporter: Matthias J. Sax
>            Assignee: Guozhang Wang
>            Priority: Minor
>              Labels: beginner, newbie, starter
>
> Currently, parameters handed in by the user via public API, are not 
> validated. For example {{stream.to(null)}} would fail when the underlying 
> producer gets instantiated. This result in a stack trace from deep down in 
> the library, making it hard to reason about the problem for the user.
> We want to check all given user parameters as early as possible and raise 
> corresponding (and helpful!) exceptions to explain users what the problem is, 
> and how to fix it. All parameter checks should get unit tested.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to