Skip to content

Commit

Permalink
Perf producer was overriding the producer max queue size (apache#1202)
Browse files Browse the repository at this point in the history
  • Loading branch information
merlimat authored and yush1ga committed Feb 8, 2018
1 parent b7e2e7c commit b538165
Showing 1 changed file with 0 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,6 @@ public EncryptionKeyInfo getPrivateKey(String keyName, Map<String, String> keyMe
if (arguments.batchTime > 0) {
producerConf.setBatchingMaxPublishDelay(arguments.batchTime, TimeUnit.MILLISECONDS);
producerConf.setBatchingEnabled(true);
producerConf.setMaxPendingMessages(arguments.msgRate);
}

// Block if queue is full else we will start seeing errors in sendAsync
Expand Down

0 comments on commit b538165

Please sign in to comment.