-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Blocking queue #463
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Blocking queue #463
Conversation
|
|
||
| private static final ProducerConfiguration producerConfiguration = new ProducerConfiguration().setSendTimeout(0, | ||
| TimeUnit.SECONDS); | ||
| TimeUnit.SECONDS).setBlockIfQueueFull(true).setMaxPendingMessages(1000); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The producer queue size is already configurable in the broker config, right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes (set via setReplicatorQueueSize) - have made the change
merlimat
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
Motivation
Continuation of #422
Modifications
Changed default options in CPP and Java Client ProducerConfigurations
Fixed some test cases
Changed perf tests to block if queue is full
Restored default behavior of persistent replicator
Result
sendAsync operation will no longer block if the producer queue is full.