[ 
https://issues.apache.org/jira/browse/KAFKA-10226?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17154909#comment-17154909
 ] 

John Roesler commented on KAFKA-10226:
--------------------------------------

Hi [~wdaehn] ,

I'm no expert on this stuff, but I think that the constructor alone may not 
actually connect to the server. Do you also get no exception if you try to send 
and close?

IIRC, the constructor does validate that the provided host is resolvable by 
DNS, which is probably why you get an immediate exception on a bad hostname.

Thanks,

-John

> KStream without SASL information should return error in confluent cloud
> -----------------------------------------------------------------------
>
>                 Key: KAFKA-10226
>                 URL: https://issues.apache.org/jira/browse/KAFKA-10226
>             Project: Kafka
>          Issue Type: Bug
>          Components: clients, streams
>    Affects Versions: 2.5.0
>            Reporter: Werner Daehn
>            Priority: Minor
>
> I have create a KStream against the Confluent cloud and wondered why no data 
> has been received from the source. Reason was that I forgot to add the SASL 
> api keys and secrets.
>  
> For end users this might lead to usability issues. If the KStream wants to 
> read from a topic and is not allowed to, this should raise an error, not be 
> silently ignored.
>  
> Hoe do producer/consumer clients handle that situation?



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to