Skip to content

[fix][cli] pulsar cli should exit normally on help and generate doc - #18733

Merged
tisonkun merged 3 commits into
masterfrom
tisonkun-patch-2
Dec 4, 2022
Merged

tisonkun merged 3 commits into
masterfrom
tisonkun-patch-2

Conversation

@tisonkun

@tisonkun tisonkun commented Dec 4, 2022

Copy link
Copy Markdown
Member

This is somewhat of a blocker to #18721.

Documentation

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

Matching PR in forked repository

PR in forked repository:

@github-actions github-actions Bot added the doc-not-needed Your PR changes do not impact docs label Dec 4, 2022
@codecov-commenter

codecov-commenter commented Dec 4, 2022 •

Copy link
Copy Markdown

Codecov Report

Merging #18733 (a521c9e) into master (3e18974) will increase coverage by 0.79%.
The diff coverage is 0.00%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master   #18733      +/-   ##
============================================
+ Coverage     45.53%   46.33%   +0.79%     
- Complexity    10220    10380     +160     
============================================
  Files           703      703              
  Lines         68797    68797              
  Branches       7374     7374              
============================================
+ Hits          31329    31876     +547     
+ Misses        33881    33309     -572     
- Partials       3587     3612      +25     
Flag Coverage Δ
unittests 46.33% <0.00%> (+0.79%) ⬆️

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

Impacted Files Coverage Δ
...in/java/org/apache/pulsar/PulsarBrokerStarter.java 0.00% <0.00%> (ø)
...va/org/apache/pulsar/compaction/CompactorTool.java 0.00% <0.00%> (ø)
...ice/persistent/PersistentMessageExpiryMonitor.java 42.70% <0.00%> (-2.09%) ⬇️
...oker/service/schema/SchemaRegistryServiceImpl.java 59.45% <0.00%> (-1.51%) ⬇️
...pache/pulsar/proxy/server/ProxyServiceStarter.java 60.66% <0.00%> (-1.34%) ⬇️
...broker/service/schema/BookkeeperSchemaStorage.java 73.61% <0.00%> (-0.31%) ⬇️
...ker/service/persistent/PersistentSubscription.java 67.95% <0.00%> (+0.16%) ⬆️
...pulsar/broker/admin/impl/PersistentTopicsBase.java 58.66% <0.00%> (+0.21%) ⬆️
.../org/apache/pulsar/broker/admin/AdminResource.java 65.20% <0.00%> (+0.23%) ⬆️
...ava/org/apache/pulsar/broker/service/Producer.java 61.47% <0.00%> (+0.28%) ⬆️
... and 43 more

@tisonkun tisonkun changed the title [fix][cli] pulsar broker {-g|-h} should exit normally [fix][cli] pulsar cli should exit normally on help and generate-doc Dec 4, 2022
@tisonkun tisonkun changed the title [fix][cli] pulsar cli should exit normally on help and generate-doc [fix][cli] pulsar cli should exit normally on help and generate doc Dec 4, 2022
@yuruguo

yuruguo commented Dec 4, 2022

Copy link
Copy Markdown
Contributor

Please pay attention to FunctionWorkerStarter

if (workerArguments.help) {
commander.usage();
System.exit(1);
return;
}
if (workerArguments.generateDocs) {
CmdGenerateDocs cmd = new CmdGenerateDocs("pulsar");
cmd.addCommand("functions-worker", workerArguments);
cmd.run(null);
return;
}

@tisonkun

tisonkun commented Dec 4, 2022

Copy link
Copy Markdown
Member Author

@yuruguo fixed at a521c9e

@tisonkun

tisonkun commented Dec 4, 2022

Copy link
Copy Markdown
Member Author

Merging..

@tisonkun
tisonkun merged commit 52954a6 into master Dec 4, 2022
@tisonkun
tisonkun deleted the tisonkun-patch-2 branch December 4, 2022 16:00
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.

4 participants