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

[feat][admin] PIP-219 Part-1 Add admin API for trimming topic #19094

Merged
merged 7 commits into from
Jan 19, 2023

Conversation

315157973
Copy link
Contributor

@315157973 315157973 commented Dec 28, 2022

PIP: #18128

Motivation

In PIP-219, we want to support full scan and trim ledger.
First, we need to expose a trimTopic API so that the Leader Broker can clean up the corresponding zombie Ledger

Modifications

Add admin API for trimming topic

Verifying this change

315157973#4

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

  • The REST endpoints

Documentation

  • doc-not-needed

Matching PR in forked repository

315157973#4

@315157973 315157973 closed this Dec 29, 2022
@315157973 315157973 reopened this Dec 29, 2022
Copy link
Contributor

@Jason918 Jason918 left a comment

Choose a reason for hiding this comment

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

LGTM

@Technoboy- Technoboy- added this to the 2.12.0 milestone Jan 9, 2023
@codecov-commenter
Copy link

Codecov Report

Merging #19094 (f5ba93c) into master (b42aed1) will decrease coverage by 9.91%.
The diff coverage is 66.66%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master   #19094      +/-   ##
============================================
- Coverage     47.11%   37.19%   -9.92%     
+ Complexity    10595     1987    -8608     
============================================
  Files           710      209     -501     
  Lines         69423    14450   -54973     
  Branches       7449     1577    -5872     
============================================
- Hits          32709     5375   -27334     
+ Misses        33037     8491   -24546     
+ Partials       3677      584    -3093     
Flag Coverage Δ
unittests 37.19% <66.66%> (-9.92%) ⬇️

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

Impacted Files Coverage Δ
...pache/pulsar/client/impl/TableViewBuilderImpl.java 72.41% <55.55%> (+72.41%) ⬆️
...a/org/apache/pulsar/client/impl/TableViewImpl.java 29.16% <75.00%> (+29.16%) ⬆️
...pulsar/client/impl/TableViewConfigurationData.java 43.75% <100.00%> (+8.03%) ⬆️
...va/org/apache/pulsar/client/impl/ConsumerImpl.java 15.06% <0.00%> (-0.04%) ⬇️
...ulsar/client/impl/TransactionMetaStoreHandler.java 0.00% <0.00%> (ø)
...n/java/org/apache/pulsar/broker/PulsarService.java
...pulsar/broker/admin/impl/PersistentTopicsBase.java
...he/pulsar/broker/admin/v2/ExtPersistentTopics.java
...pache/pulsar/broker/admin/v2/PersistentTopics.java
...pache/pulsar/proxy/server/ProxyServiceStarter.java
... and 499 more

# Conflicts:
#	pulsar-client-tools-test/src/test/java/org/apache/pulsar/admin/cli/PulsarAdminToolTest.java
@315157973
Copy link
Contributor Author

@codelipenghui PTAL

@codelipenghui codelipenghui merged commit 29c244a into apache:master Jan 19, 2023
@315157973 315157973 deleted the trim-admin-api branch April 1, 2023 08:27
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.

7 participants