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-299-part-5: Add namespace-level policy: dispatcherPauseOnAckStatePersistent #21926

Merged
merged 5 commits into from
Jan 21, 2024

Conversation

Technoboy-
Copy link
Contributor

@Technoboy- Technoboy- self-assigned this Jan 18, 2024
@Technoboy- Technoboy- added this to the 3.3.0 milestone Jan 18, 2024
@github-actions github-actions bot added the doc-not-needed Your PR changes do not impact docs label Jan 18, 2024
Copy link
Contributor

@poorbarcode poorbarcode left a comment

Choose a reason for hiding this comment

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

We can enable the case TypeOfUpdateTopicConfig.NAMESPACE_LEVEL_POLICY of the test testBrokerDynamicConfig now.

@DataProvider(name = "typesOfSetDispatcherPauseOnAckStatePersistent")
public Object[][] typesOfSetDispatcherPauseOnAckStatePersistent() {
    return new Object[][]{
      {TypeOfUpdateTopicConfig.BROKER_CONF},
      // {TypeOfUpdateTopicConfig.NAMESPACE_LEVEL_POLICY},
      {TypeOfUpdateTopicConfig.TOPIC_LEVEL_POLICY}
    };
}

@Technoboy-
Copy link
Contributor Author

We can enable the case TypeOfUpdateTopicConfig.NAMESPACE_LEVEL_POLICY of the test testBrokerDynamicConfig now.

@DataProvider(name = "typesOfSetDispatcherPauseOnAckStatePersistent")
public Object[][] typesOfSetDispatcherPauseOnAckStatePersistent() {
    return new Object[][]{
      {TypeOfUpdateTopicConfig.BROKER_CONF},
      // {TypeOfUpdateTopicConfig.NAMESPACE_LEVEL_POLICY},
      {TypeOfUpdateTopicConfig.TOPIC_LEVEL_POLICY}
    };
}

Done

@codecov-commenter
Copy link

Codecov Report

Attention: 11 lines in your changes are missing coverage. Please review.

Comparison is base (22838ea) 36.46% compared to head (1190461) 73.61%.
Report is 2 commits behind head on master.

Additional details and impacted files

Impacted file tree graph

@@              Coverage Diff              @@
##             master   #21926       +/-   ##
=============================================
+ Coverage     36.46%   73.61%   +37.14%     
- Complexity    12390    32422    +20032     
=============================================
  Files          1725     1861      +136     
  Lines        131701   138664     +6963     
  Branches      14401    15186      +785     
=============================================
+ Hits          48027   102072    +54045     
+ Misses        77254    28705    -48549     
- Partials       6420     7887     +1467     
Flag Coverage Δ
inttests 24.10% <5.26%> (-0.01%) ⬇️
systests 23.60% <3.94%> (-0.07%) ⬇️
unittests 72.90% <85.52%> (+40.86%) ⬆️

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

Files Coverage Δ
...rg/apache/pulsar/broker/service/AbstractTopic.java 87.91% <100.00%> (+24.65%) ⬆️
...ava/org/apache/pulsar/client/admin/Namespaces.java 66.66% <ø> (+66.66%) ⬆️
...e/pulsar/client/admin/internal/NamespacesImpl.java 95.44% <100.00%> (+74.90%) ⬆️
...ava/org/apache/pulsar/admin/cli/CmdNamespaces.java 78.57% <100.00%> (+78.57%) ⬆️
...apache/pulsar/common/policies/data/PolicyName.java 100.00% <100.00%> (ø)
...che/pulsar/common/policies/data/TopicPolicies.java 58.73% <100.00%> (+6.34%) ⬆️
...pache/pulsar/broker/admin/impl/NamespacesBase.java 73.04% <81.81%> (+43.69%) ⬆️
...g/apache/pulsar/common/policies/data/Policies.java 57.14% <0.00%> (+3.80%) ⬆️
.../org/apache/pulsar/broker/admin/v2/Namespaces.java 69.09% <79.31%> (+52.59%) ⬆️

... and 1431 files with indirect coverage changes

@Technoboy- Technoboy- merged commit 17bb322 into apache:master Jan 21, 2024
47 checks passed
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 ready-to-test
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants