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

[improve][broker] PIP-192: Implement broker version filter for new load manager #19023

Merged

Conversation

Demogorgon314
Copy link
Member

Motivation

We will start raising PRs to implement PIP-192, #16691

Modifications

This PR Added BrokerVersionFilter to the load balancer extensions and its unit test.

For the pip-192 project, this BrokerVersionFilter

Documentation

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

Matching PR in forked repository

PR in forked repository: Demogorgon314#9

@Demogorgon314 Demogorgon314 self-assigned this Dec 22, 2022
@github-actions github-actions bot added the doc-not-needed Your PR changes do not impact docs label Dec 22, 2022
@Demogorgon314 Demogorgon314 marked this pull request as ready for review December 22, 2022 14:08
@Demogorgon314 Demogorgon314 force-pushed the Demogorgon314/Implement_broker_filter branch from e445817 to 73b850d Compare December 26, 2022 01:54
log.info("Latest broker version found was [{}]", latestVersion);
} catch (Exception ex) {
log.warn("Disabling PreferLaterVersions feature; reason: " + ex.getMessage());
throw new BrokerFilterBadVersionException("Cannot determine newest broker version: " + ex.getMessage());
Copy link
Contributor

Choose a reason for hiding this comment

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

If an exception is thrown here, do we skip this filter?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, we should handle the exception when using the filter.

@Demogorgon314 Demogorgon314 force-pushed the Demogorgon314/Implement_broker_filter branch from 73b850d to a40e190 Compare December 28, 2022 08:01
@codelipenghui codelipenghui added this to the 2.12.0 milestone Dec 30, 2022
@codelipenghui codelipenghui added the type/feature The PR added a new feature or issue requested a new feature label Dec 30, 2022
@codelipenghui
Copy link
Contributor

/pulsarbot run-failure-checks

@codecov-commenter
Copy link

codecov-commenter commented Dec 30, 2022

Codecov Report

Merging #19023 (a40e190) into master (b36e012) will decrease coverage by 12.13%.
The diff coverage is 0.00%.

Impacted file tree graph

@@              Coverage Diff              @@
##             master   #19023       +/-   ##
=============================================
- Coverage     47.74%   35.60%   -12.14%     
+ Complexity    10623     8272     -2351     
=============================================
  Files           703      772       +69     
  Lines         68828    74282     +5454     
  Branches       7381     7994      +613     
=============================================
- Hits          32861    26449     -6412     
- Misses        32307    44318    +12011     
+ Partials       3660     3515      -145     
Flag Coverage Δ
unittests 35.60% <0.00%> (-12.14%) ⬇️

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

Impacted Files Coverage Δ
...balance/extensions/filter/BrokerVersionFilter.java 0.00% <0.00%> (ø)
...ava/org/apache/pulsar/broker/admin/v1/Brokers.java 0.00% <0.00%> (-100.00%) ⬇️
...va/org/apache/pulsar/broker/admin/v1/Clusters.java 0.00% <0.00%> (-100.00%) ⬇️
.../org/apache/pulsar/broker/admin/v1/Properties.java 0.00% <0.00%> (-100.00%) ⬇️
.../apache/pulsar/broker/admin/v2/ResourceGroups.java 0.00% <0.00%> (-100.00%) ⬇️
...ar/common/naming/PartitionedManagedLedgerInfo.java 0.00% <0.00%> (-100.00%) ⬇️
...e/pulsar/broker/admin/impl/ResourceQuotasBase.java 0.00% <0.00%> (-96.43%) ⬇️
...he/pulsar/broker/service/AnalyzeBacklogResult.java 0.00% <0.00%> (-92.31%) ⬇️
.../apache/pulsar/broker/admin/v1/ResourceQuotas.java 0.00% <0.00%> (-91.43%) ⬇️
...e/pulsar/broker/stats/AllocatorStatsGenerator.java 0.00% <0.00%> (-91.38%) ⬇️
... and 282 more

@Demogorgon314 Demogorgon314 force-pushed the Demogorgon314/Implement_broker_filter branch from a40e190 to f670d64 Compare February 3, 2023 07:44
@Technoboy- Technoboy- merged commit 7449baa into apache:master Feb 4, 2023
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 type/feature The PR added a new feature or issue requested a new feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants