diff --git a/core/src/main/scala/kafka/consumer/ConsumerConfig.scala b/core/src/main/scala/kafka/consumer/ConsumerConfig.scala index 31196ff92e5..c4b3e71b949 100644 --- a/core/src/main/scala/kafka/consumer/ConsumerConfig.scala +++ b/core/src/main/scala/kafka/consumer/ConsumerConfig.scala @@ -24,7 +24,7 @@ import kafka.common.InvalidConfigException object ConsumerConfig { val SocketTimeout = 30 * 1000 val SocketBufferSize = 64*1024 - val FetchSize = 300 * 1024 + val FetchSize = 1024 * 1024 val MaxFetchSize = 10*FetchSize val DefaultFetcherBackoffMs = 1000 val AutoCommit = true @@ -62,9 +62,6 @@ class ConsumerConfig(props: Properties) extends ZKConfig(props) { /** the number of byes of messages to attempt to fetch */ val fetchSize = Utils.getInt(props, "fetch.size", FetchSize) - /** the maximum allowable fetch size for a very large message */ - val maxFetchSize: Int = fetchSize * 10 - /** to avoid repeatedly polling a broker node which has no new data we will backoff every time we get an empty set from the broker*/ val fetcherBackoffMs: Long = Utils.getInt(props, "fetcher.backoff.ms", DefaultFetcherBackoffMs)