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

Tomasz Trębski commented on KAFKA-4022:
---------------------------------------

[~vahid] , so maybe I was misguided by the error. Basically I am trying to 
create topic via ansible using command (not sure if you are familiar with that).
And the simple fact that is now display prompts awaiting user answer made my 
role useless as it was not able to cope with that the prompt. 

Anyway, only after I read you response I realized that there's a prompt 
actually and I started to dig out how to make that in ansible.

BTW, I pointed that IMHO this code should read values from broker's actual 
configuration instead of defaults.
Does it make any sense at all ?

> TopicCommand is using default max.message.bytes instead of broker's setting
> ---------------------------------------------------------------------------
>
>                 Key: KAFKA-4022
>                 URL: https://issues.apache.org/jira/browse/KAFKA-4022
>             Project: Kafka
>          Issue Type: Bug
>          Components: admin
>    Affects Versions: 0.9.0.0, 0.9.0.1, 0.10.0.0
>         Environment: Linux testHost 3.10.0-229.el7.x86_64 #1 SMP Fri Mar 6 
> 11:36:42 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
>            Reporter: Tomasz Trębski
>
> Even though it is possible to configure brokers to support message that are 
> bigger than 1MB, admin tool to create topics won't accept the one that's size 
> is above 1,000,000 bytes. 
> Responsible line can be found under this link:
> [TopicCommand|https://github.com/apache/kafka/blob/trunk/core/src/main/scala/kafka/admin/TopicCommand.scala#L366]
> Console output also seems to be confirm that:
>  ERROR 
> {code:title=console_otuput|borderStyle=solid}
> ****************************************************************************************************
> *** WARNING: you are creating a topic where the max.message.bytes is greater 
> than the broker      ***
> *** default. This operation is dangerous. There are two potential side 
> effects:                  ***
> *** - Consumers will get failures if their fetch.message.max.bytes < the 
> value you are using     ***
> *** - Producer requests larger than replica.fetch.max.bytes will not 
> replicate and hence have    ***
> ***   a higher risk of data loss                                              
>                    ***
> *** You should ensure both of these settings are greater than the value set 
> here before using    ***
> *** this topic.                                                               
>                    ***
> ****************************************************************************************************
> - value set here: 1048576
> - Default Broker replica.fetch.max.bytes: 1048576
> - Default Broker max.message.bytes: 1000012
> - Default Consumer fetch.message.max.bytes: 1048576
> {code}



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

Reply via email to