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

Ralph Goers commented on LOG4J2-1044:
-------------------------------------

As I said, using batches works just fine for the non-PersistentManager.  The 
batch size is passed to the Flume RPCClient in FlumeAvroManager's connect 
method.  Flume takes responsibility for actually sending the data in batches.  
The batching for the PeristentManager is done so that events are persisted 
until the batch is sent by Flume at which time they are deleted. This isn't 
necessary in the non-persistent case.

In short, there is nothing to fix here unless, of course, Flume's batching 
mechanism isn't working in which case you would need to open a Jira with them. 
However, we have a unit test for sending batches and it hasn't failed.

> batchSize doesnt work for flume avro manager
> --------------------------------------------
>
>                 Key: LOG4J2-1044
>                 URL: https://issues.apache.org/jira/browse/LOG4J2-1044
>             Project: Log4j 2
>          Issue Type: Question
>          Components: Flume Appender
>    Affects Versions: 2.2
>            Reporter: Siva Kotipalli
>
> The flume appender documentation mention about batch size which states that 
> "Specifies the number of events that should be sent as a batch. The default 
> is 1.". The batchSize doesnt work and always defaults to one. 
> Its noticed that method  FlumeAvroManager.send(final BatchEvent events) is 
> never referred by appender. 
> Kindly let us know what is the correct config for batch size, the provided 
> config is
> <Flume name="flume_avro" compress="false" batchSize="5">...



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

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to