Skip to content

[pulsar-admin] Check backlog quota policy for namespace#12512

Merged
eolivelli merged 2 commits into
apache:masterfrom
yuruguo:check-backlog-quota-policy-for-namespace
Nov 5, 2021
Merged

[pulsar-admin] Check backlog quota policy for namespace#12512
eolivelli merged 2 commits into
apache:masterfrom
yuruguo:check-backlog-quota-policy-for-namespace

Conversation

@yuruguo

@yuruguo yuruguo commented Oct 27, 2021

Copy link
Copy Markdown
Contributor

Motivation

We should check the validity of the option in command set-backlog-quota / remove-backlog-quota for namespace and give a more friendly prompt message when executing ./bin/pulsar-admin namespaces set-backlog-quota / ./bin/pulsar-admin namespaces remove-backlog-quota.

  • the option that need to be verified in the command set-backlog-quota include: --limit,--type
  • the option that need to be verified for the command remove-backlog-quota include: --type

Currently, the lack of verification for above option will directly display the exception.

Modifications

  • Throw ParameterException when IllegalArgumentException occurs when executing validateSizeString() / BacklogQuota.BacklogQuotaType.valueOf()

Documentation

Check the box below and label this PR (if you have committer privilege).

Need to update docs?

  • doc-required

(If you need help on updating docs, create a doc issue)

  • no-need-doc

(Please explain why)

  • doc

(If this PR contains doc changes)

@github-actions github-actions Bot added the doc-not-needed Your PR changes do not impact docs label Oct 27, 2021
@github-actions

Copy link
Copy Markdown

@yuruguo:Thanks for your contribution. For this PR, do we need to update docs?
(The PR template contains info about doc, which helps others know more about the changes. Can you provide doc-related info in this and future PR descriptions? Thanks)

@github-actions

Copy link
Copy Markdown

@yuruguo:Thanks for providing doc info!

Comment thread pulsar-client-tools/src/main/java/org/apache/pulsar/admin/cli/CmdNamespaces.java Outdated

@315157973 315157973 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.

LGTM

@yuruguo
yuruguo requested a review from eolivelli October 28, 2021 14:34

@eolivelli eolivelli 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.

LGTM

@eolivelli
eolivelli merged commit 08962f5 into apache:master Nov 5, 2021
zeo1995 pushed a commit to zeo1995/pulsar that referenced this pull request Nov 7, 2021
* up/master: (55 commits)
  [broker] remove useless method "PersistentTopic#getPersistentTopic" (apache#12655)
  [Python Schema] Python schema support custom Avro configurations for Enum type (apache#12642)
  Allow to configure different implementations for Pulsar functions state store (apache#12646)
  Remove replicator global test from the quarantine group (apache#12648)
  [Java Client] Remove invalid call to Thread.currentThread().interrupt(); (apache#12652)
  k8s runtime: force deletion to avoid hung function worker during connector restart (apache#12504)
  [Broker] Optimize exception information for schemas (apache#12647)
  Close Zk database on unit tests (apache#12649)
  Fix call sync method in an async callback when enabling geo replicator. (apache#12590)
  [pulsar-broker] Add git branch information for PulsarVersion (apache#12541)
  PulsarAdmin: Fix last exit code storage (apache#12581)
  Add @test annotation to test methods (apache#12640)
  Upgrade debezium to 1.7.1 (apache#12644)
  [ML] Avoid passing OpAddEntry across a thread boundary in asyncAddEntry (apache#12606)
  [Functions] Prevent NPE while stopping a non started Pulsar LogAppender (apache#12643)
  Update io-debezium-source.md (apache#12638)
  Add missing cmds on pulsar-admin document page (apache#12634)
  Clean up the metadata of the non-persistent partitioned topics. (apache#12550)
  modify check waitingForPingResponse with volatile (apache#12615)
  [pulsar-admin] Check backlog quota policy for namespace (apache#12512)
  ...
zeo1995 pushed a commit to zeo1995/pulsar that referenced this pull request Nov 7, 2021
* up/master: (55 commits)
  [broker] remove useless method "PersistentTopic#getPersistentTopic" (apache#12655)
  [Python Schema] Python schema support custom Avro configurations for Enum type (apache#12642)
  Allow to configure different implementations for Pulsar functions state store (apache#12646)
  Remove replicator global test from the quarantine group (apache#12648)
  [Java Client] Remove invalid call to Thread.currentThread().interrupt(); (apache#12652)
  k8s runtime: force deletion to avoid hung function worker during connector restart (apache#12504)
  [Broker] Optimize exception information for schemas (apache#12647)
  Close Zk database on unit tests (apache#12649)
  Fix call sync method in an async callback when enabling geo replicator. (apache#12590)
  [pulsar-broker] Add git branch information for PulsarVersion (apache#12541)
  PulsarAdmin: Fix last exit code storage (apache#12581)
  Add @test annotation to test methods (apache#12640)
  Upgrade debezium to 1.7.1 (apache#12644)
  [ML] Avoid passing OpAddEntry across a thread boundary in asyncAddEntry (apache#12606)
  [Functions] Prevent NPE while stopping a non started Pulsar LogAppender (apache#12643)
  Update io-debezium-source.md (apache#12638)
  Add missing cmds on pulsar-admin document page (apache#12634)
  Clean up the metadata of the non-persistent partitioned topics. (apache#12550)
  modify check waitingForPingResponse with volatile (apache#12615)
  [pulsar-admin] Check backlog quota policy for namespace (apache#12512)
  ...
eolivelli pushed a commit to eolivelli/pulsar that referenced this pull request Nov 29, 2021
@Technoboy- Technoboy- modified the milestone: 2.12.0 Dec 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

doc-not-needed Your PR changes do not impact docs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants