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][client] Support MAX_ACK_GROUP_SIZE configurable #18107

Merged

Conversation

lordcheng10
Copy link
Contributor

@lordcheng10 lordcheng10 commented Oct 19, 2022

Motivation

The current MAX_ACK_GROUP_SIZE is fixed at 1000, increase the configuration acknowledgementsGroupSize, support MAX_ACK_GROUP_SIZE configurable:

Modifications

1.Add configuration acknowledgementsGroupSize;

Documentation

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

Matching PR in forked repository

PR in forked repository: lordcheng10#33

@RobertIndie
Copy link
Member

Please add some tests to verify the PR.

@lordcheng10
Copy link
Contributor Author

Please add some tests to verify the PR.

OK , I will fix

@lordcheng10
Copy link
Contributor Author

Please add some tests to verify the PR.

Fixed.PTAL,thanks!@RobertIndie

@lordcheng10
Copy link
Contributor Author

@eolivelli @RobertIndie @AnonHxy @Jason918 @HQebupt PTAL,thanks!

@lordcheng10 lordcheng10 requested review from AnonHxy and RobertIndie and removed request for RobertIndie and AnonHxy October 20, 2022 02:01
@lordcheng10 lordcheng10 force-pushed the support_MAX_ACK_GROUP_SIZE_config branch from ce5215a to 9cd92bc Compare October 20, 2022 03:54
@lordcheng10
Copy link
Contributor Author

/pulsarbot run-failure-checks

@lordcheng10
Copy link
Contributor Author

lordcheng10 commented Oct 20, 2022

CI all passed: lordcheng10#33

@lordcheng10
Copy link
Contributor Author

/pulsarbot run-failure-checks

1 similar comment
@lordcheng10
Copy link
Contributor Author

/pulsarbot run-failure-checks

@codecov-commenter
Copy link

codecov-commenter commented Oct 21, 2022

Codecov Report

Merging #18107 (a68537e) into master (6c65ca0) will increase coverage by 10.82%.
The diff coverage is 51.69%.

Impacted file tree graph

@@              Coverage Diff              @@
##             master   #18107       +/-   ##
=============================================
+ Coverage     34.91%   45.74%   +10.82%     
- Complexity     5707    17568    +11861     
=============================================
  Files           607     1574      +967     
  Lines         53396   128526    +75130     
  Branches       5712    14149     +8437     
=============================================
+ Hits          18644    58789    +40145     
- Misses        32119    63658    +31539     
- Partials       2633     6079     +3446     
Flag Coverage Δ
unittests 45.74% <51.69%> (+10.82%) ⬆️

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

Impacted Files Coverage Δ
...che/bookkeeper/mledger/impl/ManagedLedgerImpl.java 71.11% <0.00%> (ø)
...org/apache/pulsar/broker/ServiceConfiguration.java 52.06% <ø> (ø)
...pache/pulsar/broker/admin/impl/NamespacesBase.java 61.87% <ø> (+47.34%) ⬆️
.../pulsar/broker/service/AbstractBaseDispatcher.java 50.92% <ø> (+5.06%) ⬆️
...che/pulsar/broker/service/BacklogQuotaManager.java 12.39% <0.00%> (+2.91%) ⬆️
.../service/SystemTopicBasedTopicPoliciesService.java 62.97% <0.00%> (+11.38%) ⬆️
.../pulsar/broker/stats/BrokerOperabilityMetrics.java 98.21% <ø> (+5.56%) ⬆️
...g/apache/pulsar/compaction/CompactedTopicImpl.java 69.28% <0.00%> (+58.57%) ⬆️
...va/org/apache/pulsar/client/impl/ConsumerBase.java 21.95% <0.00%> (ø)
...apache/pulsar/client/impl/ConsumerBuilderImpl.java 27.51% <0.00%> (ø)
... and 1150 more

@RobertIndie RobertIndie merged commit 092d3b3 into apache:master Oct 21, 2022
Technoboy- pushed a commit that referenced this pull request Feb 8, 2023
The current MAX_ACK_GROUP_SIZE is fixed at 1000, increase the configuration acknowledgementsGroupSize, support MAX_ACK_GROUP_SIZE configurable:
https://github.com/apache/pulsar/blob/afcdbf0e2b5fb905e1f82f0220436f8f9ec0c742/pulsar-client/src/main/java/org/apache/pulsar/client/impl/PersistentAcknowledgmentsGroupingTracker.java#L63-L64

1.Add configuration acknowledgementsGroupSize;
@Technoboy- Technoboy- added this to the 3.0.0 milestone Feb 8, 2023
@Technoboy-
Copy link
Contributor

#18345 relies on this, so cherry-picked to branch-2.11

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants