Skip to content

Client flow permits calibration #6255

Closed

Description

@codelipenghui

Is your feature request related to a problem? Please describe.
We have met a lot of problems related to consumption stuck. Most of the reasons related to permits sync from broker and client. So it's necessary to introduce a mechanism for clients and brokers permits calibration when consumption stuck.

This is a tracker to track this feature.

Activity

  1. added
    type/feature
    on Feb 7, 2020
  2. added this to the 2.6.0 milestone on Feb 7, 2020
  3. self-assigned this
    on Feb 7, 2020
  4. modified the milestones: 2.6.0, 2.7.0 on May 19, 2020
  5. modified the milestones: 2.7.0, 2.8.0 on Nov 4, 2020
  6. devinbost commented on Apr 9, 2021

    @devinbost
    Contributor

    Thanks for creating this issue. I'm actively working on it, but I haven't found a clear root cause yet.
    What I've noticed, however, is that the client consumer has the correct number of permits, but the broker Consumer and dispatcher are both getting negative permits. (Their negative permit values match as well for the corresponding topic.)
    What's strange is that some people do not seem to experience this issue in their clusters, so it seems that there may be a configuration that toggles the issue.

  7. devinbost commented on Apr 9, 2021

    @devinbost
    Contributor

    It's also possible that only certain kinds of workloads trigger the issues.
    We've seen this issue in function workloads using shared subscriptions with one or more consumers per topic (but only one consumer per subscription) on persistent topics.
    When looking at a heap dump, the dispatchers all used PersistentDispatcherMultipleConsumers. I'll post more information about the heap dump details on #6054

  8. modified the milestones: 2.8.0, 2.9.0 on May 21, 2021
  9. modified the milestones: 2.9.0, 2.10.0 on Oct 6, 2021
  10. removed this from the 2.10.0 milestone on Feb 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

type/feature

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions