Skip to content

Conversation

@massakam
Copy link
Contributor

Motivation

The other day, our company upgraded Pulsar from 2.3.2 to 2.4.2. Then, the topic-level dispatch throttling no longer works as expected.

This is because the field name that specifies the topic-level dispatch rate has been changed by #4273 from clusterDispatchRate to topicDispatchRate. In Pulsar 2.4.0 or later, clusterDispatchRate set for the znodes of namespaces is ignored.

The name topicDispatchRate is more appropriate than clusterDispatchRate, but I think the value of clusterDispatchRate set in previous versions should not be ignored.

Modifications

Restored clusterDispatchRate field in Policies class. If topicDispatchRate is empty, clusterDispatchRate is referred.

Copy link
Contributor

@nkurihar nkurihar left a comment

Choose a reason for hiding this comment

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

LGTM

@massakam massakam force-pushed the restore-cluster-dispatch-rate branch from 51aa2c9 to 6ee175b Compare February 4, 2020 08:31
@sijie sijie added the doc-required Your PR changes impact docs and you will update later. label Feb 4, 2020
@massakam massakam changed the title Restore clusterDispatchRate policy for compatibility [broker] Restore clusterDispatchRate policy for compatibility Feb 5, 2020
@sijie sijie merged commit 9b46930 into apache:master Feb 10, 2020
@massakam massakam deleted the restore-cluster-dispatch-rate branch February 12, 2020 01:20
tuteng pushed a commit to AmateurEvents/pulsar that referenced this pull request Feb 23, 2020
Co-authored-by: Sijie Guo <guosijie@gmail.com>
tuteng pushed a commit to AmateurEvents/pulsar that referenced this pull request Mar 21, 2020
Co-authored-by: Sijie Guo <guosijie@gmail.com>
(cherry picked from commit 9b46930)
tuteng pushed a commit that referenced this pull request Apr 13, 2020
Co-authored-by: Sijie Guo <guosijie@gmail.com>
(cherry picked from commit 9b46930)
jiazhai pushed a commit to jiazhai/pulsar that referenced this pull request May 18, 2020
Co-authored-by: Sijie Guo <guosijie@gmail.com>
(cherry picked from commit 9b46930)
huangdx0726 pushed a commit to huangdx0726/pulsar that referenced this pull request Aug 24, 2020
Co-authored-by: Sijie Guo <guosijie@gmail.com>
@Anonymitaet Anonymitaet added doc Your PR contains doc changes, no matter whether the changes are in markdown or code files. and removed doc-required Your PR changes impact docs and you will update later. labels Feb 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/broker doc Your PR contains doc changes, no matter whether the changes are in markdown or code files. release/2.5.1

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants