Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[fix][admin] Passing force parameter to deleteNamespaceBundle when deleting namespaces #18153

Merged
merged 1 commit into from
Oct 24, 2022

Conversation

coderzc
Copy link
Member

@coderzc coderzc commented Oct 21, 2022

Motivation

In the current implementation, don't pass the force parameter to deleteNamespaceBundle when deleting namespaces, we should pass the force parameter.

Modifications

Passing force parameter to deleteNamespaceBundle when delete namespaces.

Verifying this change

  • Make sure that the change passes the CI checks.

(Please pick either of the following options)

This change is a trivial rework / code cleanup without any test coverage.

(or)

This change is already covered by existing tests, such as (please describe tests).

(or)

This change added tests and can be verified as follows:

(example:)

  • Added integration tests for end-to-end deployment with large payloads (10MB)
  • Extended integration test for recovery after broker failure

Documentation

  • doc
  • doc-required
  • doc-not-needed
  • doc-complete

Matching PR in forked repository

PR in forked repository: coderzc#20

@github-actions github-actions bot added the doc-not-needed Your PR changes do not impact docs label Oct 21, 2022
@coderzc coderzc force-pushed the fix_force_deletenaspace branch from 426c515 to 973f3f9 Compare October 21, 2022 10:50
@coderzc coderzc force-pushed the fix_force_deletenaspace branch from 973f3f9 to 20f2bb6 Compare October 21, 2022 12:05
Copy link
Member

@nodece nodece left a comment

Choose a reason for hiding this comment

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

LGTM, could you add a unit test?

@Technoboy- Technoboy- added this to the 2.12.0 milestone Oct 22, 2022
@Technoboy- Technoboy- added type/enhancement The enhancements for the existing features or docs. e.g. reduce memory usage of the delayed messages area/admin ready-to-test labels Oct 22, 2022
@Technoboy- Technoboy- closed this Oct 22, 2022
@Technoboy- Technoboy- reopened this Oct 22, 2022
@codecov-commenter
Copy link

codecov-commenter commented Oct 22, 2022

Codecov Report

Merging #18153 (20f2bb6) into master (6c65ca0) will increase coverage by 5.03%.
The diff coverage is 30.17%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master   #18153      +/-   ##
============================================
+ Coverage     34.91%   39.94%   +5.03%     
- Complexity     5707    14899    +9192     
============================================
  Files           607     1574     +967     
  Lines         53396   128632   +75236     
  Branches       5712    14159    +8447     
============================================
+ Hits          18644    51385   +32741     
- Misses        32119    71497   +39378     
- Partials       2633     5750    +3117     
Flag Coverage Δ
unittests 39.94% <30.17%> (+5.03%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
.../main/java/org/apache/pulsar/PulsarStandalone.java 0.00% <0.00%> (ø)
.../apache/pulsar/broker/admin/impl/ClustersBase.java 8.57% <0.00%> (-0.48%) ⬇️
.../pulsar/broker/admin/impl/SchemasResourceBase.java 38.38% <0.00%> (-7.08%) ⬇️
.../org/apache/pulsar/broker/admin/v2/Namespaces.java 11.77% <0.00%> (+3.74%) ⬆️
.../pulsar/broker/service/AbstractBaseDispatcher.java 43.55% <0.00%> (-2.31%) ⬇️
...che/pulsar/broker/service/BacklogQuotaManager.java 9.09% <0.00%> (-0.40%) ⬇️
.../pulsar/broker/service/BrokerServiceException.java 27.77% <0.00%> (+2.77%) ⬆️
...ava/org/apache/pulsar/broker/service/Consumer.java 64.36% <0.00%> (+2.35%) ⬆️
...ava/org/apache/pulsar/broker/service/Producer.java 58.28% <0.00%> (-1.36%) ⬇️
...pulsar/broker/service/PulsarCommandSenderImpl.java 63.07% <0.00%> (-3.59%) ⬇️
... and 1110 more

@coderzc
Copy link
Member Author

coderzc commented Oct 24, 2022

/pulsarbot run-failure-checks

@RobertIndie RobertIndie merged commit d1b5c02 into apache:master Oct 24, 2022
@momo-jun momo-jun changed the title [fix][admin] Passing force parameter to deleteNamespaceBundle when delete namespaces [fix][admin] Passing force parameter to deleteNamespaceBundle when deleting namespaces Apr 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/admin doc-not-needed Your PR changes do not impact docs ready-to-test 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.

7 participants