These configs have been deprecated since 0.9.0.0:
block.on.buffer.full, metadata.fetch.timeout.ms and timeout.ms
Author: Ismael Juma <ismael@juma.me.uk>
Reviewers: Jason Gustafson <jason@confluent.io>
Closes#2987 from ijuma/kafka-3353-remove-deprecated-producer-configs
privatestaticfinalStringMETADATA_FETCH_TIMEOUT_DOC="The first time data is sent to a topic we must fetch metadata about that topic to know which servers "
+"host the topic's partitions. This config specifies the maximum time, in milliseconds, for this fetch "
+"to succeed before throwing an exception back to the client.";
privatestaticfinalStringTIMEOUT_DOC="The configuration controls the maximum amount of time the server will wait for acknowledgments from followers to "
+"meet the acknowledgment requirements the producer has specified with the <code>acks</code> configuration. If the "
+"requested number of acknowledgments are not met when the timeout elapses an error will be returned. This timeout "
+"is measured on the server side and does not include the network latency of the request.";
privatestaticfinalStringLINGER_MS_DOC="The producer groups together any records that arrive in between request transmissions into a single batched request. "
@ -143,19 +121,6 @@ public class ProducerConfig extends AbstractConfig {
@@ -143,19 +121,6 @@ public class ProducerConfig extends AbstractConfig {
+"These methods can be blocked either because the buffer is full or metadata unavailable."
+"Blocking in the user-supplied serializers or partitioner will not be counted against this timeout.";
privatestaticfinalStringBLOCK_ON_BUFFER_FULL_DOC="When our memory buffer is exhausted we must either stop accepting new records (block) or throw errors. "
+"By default this setting is false and the producer will no longer throw a BufferExhaustException but instead will use the <code>"+MAX_BLOCK_MS_CONFIG+"</code> "
+"value to block, after which it will throw a TimeoutException. Setting this property to true will set the <code>"+MAX_BLOCK_MS_CONFIG+"</code> to Long.MAX_VALUE. "
+"<em>Also if this property is set to true, parameter <code>"+METADATA_FETCH_TIMEOUT_CONFIG+"</code> is no longer honored.</em>"
+"<p>This parameter is deprecated and will be removed in a future release. "
+"Parameter <code>"+MAX_BLOCK_MS_CONFIG+"</code> should be used instead.";
privatestaticfinalStringBUFFER_MEMORY_DOC="The total bytes of memory the producer can use to buffer records waiting to be sent to the server. If records are "
@ -256,7 +221,6 @@ public class ProducerConfig extends AbstractConfig {
@@ -256,7 +221,6 @@ public class ProducerConfig extends AbstractConfig {