Skip to content

Blocking queue - #463

Merged
merlimat merged 11 commits into
apache:masterfrom
jai1:blockingQueue
Jun 9, 2017
Merged

Blocking queue#463
merlimat merged 11 commits into
apache:masterfrom
jai1:blockingQueue

Conversation

@jai1

@jai1 jai1 commented Jun 9, 2017

Copy link
Copy Markdown
Contributor

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.

@jai1 jai1 added area/client doc Your PR contains doc changes, no matter whether the changes are in markdown or code files. type/enhancement The enhancements for the existing features or docs. e.g. reduce memory usage of the delayed messages labels Jun 9, 2017
@jai1 jai1 added this to the 1.18 milestone Jun 9, 2017
@jai1 jai1 self-assigned this Jun 9, 2017
@jai1
jai1 requested review from merlimat and rdhabalia June 9, 2017 17:29
@jai1
jai1 requested a review from saandrews June 9, 2017 19:56

private static final ProducerConfiguration producerConfiguration = new ProducerConfiguration().setSendTimeout(0,
TimeUnit.SECONDS);
TimeUnit.SECONDS).setBlockIfQueueFull(true).setMaxPendingMessages(1000);

Copy link
Copy Markdown
Contributor

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?

Copy link
Copy Markdown
Contributor Author

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 merlimat left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@merlimat
merlimat merged commit efb177d into apache:master Jun 9, 2017
@jai1
jai1 deleted the blockingQueue branch June 9, 2017 21:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/client doc Your PR contains doc changes, no matter whether the changes are in markdown or code files. type/enhancement The enhancements for the existing features or docs. e.g. reduce memory usage of the delayed messages

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants