Skip to content

Changing blockIfQueueFull default to false #422

Closed

Description

@jai1

Users expect the sendAsync call to be non blocking even when broker is in a bad shape (Restart or GC pause etc) but since blockIfQueueFull is true by default the sendAsync call block which ends up blocking their entire application.

We are planning to change the default blockIfQueueFull to false in our internal wrapper - let me know what you think about this and if you want me to do the same in Pulsar (open source).

Activity

  1. added
    deprecated/question
    on May 18, 2017
  2. self-assigned this
    on May 18, 2017
  3. jai1 commented on May 18, 2017

    @jai1
    ContributorAuthor
  4. sschepens commented on May 19, 2017

    @sschepens
    Contributor

    Totally agree, blockIfQUeueFull should default to false

  5. saandrews commented on May 19, 2017

    @saandrews
    Contributor
  6. msb-at-yahoo commented on May 19, 2017

    @msb-at-yahoo
    Contributor

    👍
    at Yahoo, we may want to communicate this change loudly. for most applications, it's likely to make things work the way the developers expected, but there's always seems to be someone who depends upon bizarre semantics.

  7. merlimat commented on May 19, 2017

    @merlimat
    Contributor

    I agree too. Would it make sense to increase the default queue size as well?

    If you're publishing 1K msg/s, a queue size of 1K will buffer up for 1 seconds. After that you will start seeing publish failures.

  8. jai1 commented on May 24, 2017

    @jai1
    ContributorAuthor

    @merlimat - I agree that the number of publish failures may go up in case broker is unresponsive even for a second.
    @saandrews @rdhabalia - Does 5K seem a good number - I don't think any property publishes more than 1K mps so 5K limit will give the broker 5 seconds breathing space in case of GC pauses.

  9. saandrews commented on May 24, 2017

    @saandrews
    Contributor

    I was thinking 30k which covers our timeout duration. But client mem usage will shoot up. Any thoughts @merlimat ?

  10. added this to the 1.18 milestone on Jun 15, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area/clientdeprecated/question

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions