-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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][cli] Add --cleanupSubscription
to pulsar-admin
#20028
[improve][cli] Add --cleanupSubscription
to pulsar-admin
#20028
Conversation
fa8c600
to
3f1e386
Compare
@@ -202,12 +202,6 @@ public static FunctionDetails convert(SinkConfig sinkConfig, ExtractedSinkDetail | |||
sourceSpecBuilder.setNegativeAckRedeliveryDelayMs(sinkConfig.getNegativeAckRedeliveryDelayMs()); | |||
} | |||
|
|||
if (sinkConfig.getCleanupSubscription() != null) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removals on this file seems breaking change?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's duplicated in lines 196~200
other deletions in this file also because of duplicate code
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your explanation! Running tests...
Codecov Report
@@ Coverage Diff @@
## master #20028 +/- ##
============================================
- Coverage 72.93% 72.90% -0.03%
- Complexity 31934 31943 +9
============================================
Files 1868 1868
Lines 138449 138457 +8
Branches 15235 15235
============================================
- Hits 100978 100946 -32
- Misses 29438 29475 +37
- Partials 8033 8036 +3
Flags with carried forward coverage won't be shown. Click here to find out more.
|
Merging... Thank you @jiangpengcheng! |
Hi @jiangpengcheng thanks for introducing this great improvement! We're trying to align docs with code for each release and I have some questions as below. Can you please help answer? TIA!
|
If it should be cherry-picked into |
ping @jiangpengcheng, can you answer the questions? |
@jiangpengcheng for the doc side, the flag has been shown on the Reference site, but language support info is missing. Can you add that? Thanks! |
For the doc side, we need to add it to:
|
@Anonymitaet added here: #20836 |
Fixes #20027
Master Issue: #xyz
PIP: #xyz
Motivation
pulsar-admin can't set
cleanupSubscription
for functions/sinksModifications
add a
--cleanupSubscription
parameterVerifying this change
(Please pick either of the following options)
(or)
This change is already covered by existing tests, such as (please describe tests).
(or)
This change added tests and can be verified as follows:
(example:)
Does this pull request potentially affect one of the following parts:
If the box was checked, please highlight the changes
Documentation
doc
doc-required
doc-not-needed
doc-complete
Matching PR in forked repository
PR in forked repository: jiangpengcheng#11