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][fn] Do not delete managed packages when deleting functions #18030

Merged
merged 1 commit into from
Nov 9, 2022

Conversation

jiangpengcheng
Copy link
Contributor

@jiangpengcheng jiangpengcheng commented Oct 13, 2022

Fixes #17982

Motivation

managed packages should not be deleted automatically when deleting function

Modifications

remove auto deletion logic for managed package

Verifying this change

  • Make sure that the change passes the CI checks.

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

Does this pull request potentially affect one of the following parts:

If the box was checked, please highlight the changes

  • Dependencies (add or upgrade a dependency)
  • The public API
  • The schema
  • The default values of configurations
  • The binary protocol
  • The REST endpoints
  • The admin CLI options
  • Anything that affects deployment

Documentation

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

Matching PR in forked repository

PR in forked repository:

pr in my forked repo: jiangpengcheng#1

@github-actions github-actions bot added the doc-not-needed Your PR changes do not impact docs label Oct 13, 2022
@Technoboy- Technoboy- added this to the 2.12.0 milestone Oct 13, 2022
@Technoboy- Technoboy- added type/enhancement The enhancements for the existing features or docs. e.g. reduce memory usage of the delayed messages area/function labels Oct 13, 2022
@Technoboy- Technoboy- requested a review from freeznet October 13, 2022 08:00
@codelipenghui codelipenghui added release/2.11.0 release/blocker Indicate the PR or issue that should block the release until it gets resolved labels Oct 17, 2022
@codelipenghui
Copy link
Contributor

The issue is introduced by #14450, it's better to have this fix in 2.11.0 @Technoboy-

@jiangpengcheng jiangpengcheng changed the title [fix][function] Do not delete managed package when delete function [fix][fn] Do not delete managed package when delete function Oct 19, 2022
@jiangpengcheng jiangpengcheng force-pushed the dont_delete_package_auto branch 2 times, most recently from c430fa4 to eca91cd Compare October 20, 2022 02:23
@codecov-commenter
Copy link

codecov-commenter commented Oct 21, 2022

Codecov Report

Merging #18030 (c0295c8) into master (6c65ca0) will increase coverage by 15.80%.
The diff coverage is 16.84%.

Impacted file tree graph

@@              Coverage Diff              @@
##             master   #18030       +/-   ##
=============================================
+ Coverage     34.91%   50.71%   +15.80%     
- Complexity     5707     8698     +2991     
=============================================
  Files           607      607               
  Lines         53396    53511      +115     
  Branches       5712     5739       +27     
=============================================
+ Hits          18644    27139     +8495     
+ Misses        32119    23372     -8747     
- Partials       2633     3000      +367     
Flag Coverage Δ
unittests 50.71% <16.84%> (+15.80%) ⬆️

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 76.66% <0.00%> (+67.62%) ⬆️
...pache/pulsar/broker/admin/impl/NamespacesBase.java 61.93% <ø> (+47.40%) ⬆️
.../pulsar/broker/service/AbstractBaseDispatcher.java 52.14% <0.00%> (+6.28%) ⬆️
...che/pulsar/broker/service/BacklogQuotaManager.java 12.39% <0.00%> (+2.91%) ⬆️
.../pulsar/broker/service/BrokerServiceException.java 42.59% <0.00%> (+17.59%) ⬆️
...ava/org/apache/pulsar/broker/service/Consumer.java 71.27% <0.00%> (+9.26%) ⬆️
...ava/org/apache/pulsar/broker/service/Producer.java 61.83% <0.00%> (+2.19%) ⬆️
...pulsar/broker/service/PulsarCommandSenderImpl.java 66.66% <0.00%> (ø)
...va/org/apache/pulsar/broker/service/ServerCnx.java 44.93% <0.00%> (-0.40%) ⬇️
... and 179 more

@jiangpengcheng
Copy link
Contributor Author

/pulsarbot rerun-failure-checks

@jiangpengcheng
Copy link
Contributor Author

/pulsarbot rerun-failure-checks

@freeznet freeznet merged commit ef5346b into apache:master Nov 9, 2022
@Technoboy- Technoboy- added cherry-picked/branch-2.11 and removed release/2.11.0 release/blocker Indicate the PR or issue that should block the release until it gets resolved labels Nov 15, 2022
@momo-jun momo-jun changed the title [fix][fn] Do not delete managed package when delete function [fix][fn] Do not delete managed packages when deleting functions Apr 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/function cherry-picked/branch-2.11 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.

[Bug] package is deleted when a related function is deleted
6 participants