Skip to content

[improve][broker] First judge whether config is null when standalone start - #18681

Merged
Jason918 merged 1 commit into
apache:masterfrom
yuruguo:first-judge-whether-configuration-is-null
Dec 1, 2022
Merged

Jason918 merged 1 commit into
apache:masterfrom
yuruguo:first-judge-whether-configuration-is-null

Conversation

@yuruguo

@yuruguo yuruguo commented Nov 30, 2022 •

Copy link
Copy Markdown
Contributor

Modifications

First judge whether config is null when standalone start.

Because pulsar standalone can exit directly when the configuration is null and it is unnecessary to first determine whether to use zk or rocksdb for metadata, this change occurred in #15478

bf194b5#diff-399556fcde9451e101db2623a732d231d48a6abbfed2db4c0b49e0cc20e634edR269-R289

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 Nov 30, 2022
@yuruguo yuruguo added this to the 2.12.0 milestone Nov 30, 2022
@yuruguo yuruguo self-assigned this Nov 30, 2022

@RobertIndie RobertIndie left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

What issue is this PR fixing? It doesn't seem to change the existing behavior.

@yuruguo

yuruguo commented Nov 30, 2022

Copy link
Copy Markdown
Contributor Author

What issue is this PR fixing? It doesn't seem to change the existing behavior.

There is no problem but an optimization.
Because pulsar standalone can exit directly when the configuration is null and it is unnecessary to first determine whether to use zk or rocksdb for metadata, this change occurred in #15478

bf194b5#diff-399556fcde9451e101db2623a732d231d48a6abbfed2db4c0b49e0cc20e634edR269-R289

@apache apache deleted a comment from codecov-commenter Nov 30, 2022
@Jason918
Jason918 merged commit bbc7a25 into apache:master Dec 1, 2022
lifepuzzlefun pushed a commit to lifepuzzlefun/pulsar that referenced this pull request Dec 9, 2022
lifepuzzlefun pushed a commit to lifepuzzlefun/pulsar that referenced this pull request Jan 10, 2023
@codecov-commenter

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 0% with 3 lines in your changes missing coverage. Please review.
✅ Project coverage is 46.88%. Comparing base (b579bb8) to head (5cce72f).
⚠️ Report is 3240 commits behind head on master.

Files with missing lines Patch % Lines
.../main/java/org/apache/pulsar/PulsarStandalone.java 0.00% 3 Missing ⚠️
Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff              @@
##             master   #18681      +/-   ##
============================================
- Coverage     47.51%   46.88%   -0.64%     
+ Complexity    10520    10421      -99     
============================================
  Files           698      698              
  Lines         68079    68326     +247     
  Branches       7280     7331      +51     
============================================
- Hits          32351    32032     -319     
- Misses        32151    32687     +536     
- Partials       3577     3607      +30     
Flag Coverage Δ
unittests 46.88% <0.00%> (-0.64%) ⬇️

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

Files with missing lines Coverage Δ
.../main/java/org/apache/pulsar/PulsarStandalone.java 0.00% <0.00%> (ø)

... and 56 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/broker 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