mirror of https://github.com/apache/kafka.git
KAFKA-2571; KafkaLog4jAppender dies while specifying acks config
Author: Ashish Singh <asingh@cloudera.com> Reviewers: Ewen Cheslack-Postava, Gwen Shapira Closes #231 from SinghAsDev/KAFKA-2571
This commit is contained in:
parent
48b4d6938d
commit
18d370124b
|
@ -117,7 +117,7 @@ public class KafkaLog4jAppender extends AppenderSkeleton {
|
|||
if (compressionType != null)
|
||||
props.put(COMPRESSION_TYPE_CONFIG, compressionType);
|
||||
if (requiredNumAcks != Integer.MAX_VALUE)
|
||||
props.put(ACKS_CONFIG, requiredNumAcks);
|
||||
props.put(ACKS_CONFIG, Integer.toString(requiredNumAcks));
|
||||
if (retries > 0)
|
||||
props.put(RETRIES_CONFIG, retries);
|
||||
|
||||
|
|
Loading…
Reference in New Issue