Skip to content

[improve][client]Remove unused check for topics isEmpty - #18185

Merged
codelipenghui merged 2 commits into
apache:masterfrom
AnonHxy:fix_topicNamesValid_not
Oct 25, 2022
Merged

codelipenghui merged 2 commits into
apache:masterfrom
AnonHxy:fix_topicNamesValid_not

Conversation

@AnonHxy

@AnonHxy AnonHxy commented Oct 25, 2022 •

Copy link
Copy Markdown
Contributor

Motivation

Remove unused check for conf.getTopicNames().isEmpty(), becase line170 has checked and it's always false here

Modifications

  • Remove unused check for conf.getTopicNames().isEmpty()
  • Add a test for topicNamesValid

Verifying this change

  • Make sure that the change passes the CI checks.

Documentation

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

Matching PR in forked repository

PR in forked repository: AnonHxy#11

@github-actions github-actions Bot added the doc-not-needed Your PR changes do not impact docs label Oct 25, 2022
@AnonHxy AnonHxy self-assigned this Oct 25, 2022
@AnonHxy AnonHxy added this to the 2.12.0 milestone Oct 25, 2022
@codecov-commenter

codecov-commenter commented Oct 25, 2022 •

Copy link
Copy Markdown

Codecov Report

Merging #18185 (8f2ddbe) into master (6c65ca0) will increase coverage by 15.01%.
The diff coverage is 42.13%.

Impacted file tree graph

@@              Coverage Diff              @@
##             master   #18185       +/-   ##
=============================================
+ Coverage     34.91%   49.93%   +15.01%     
- Complexity     5707     7023     +1316     
=============================================
  Files           607      398      -209     
  Lines         53396    43552     -9844     
  Branches       5712     4474     -1238     
=============================================
+ Hits          18644    21747     +3103     
+ Misses        32119    19392    -12727     
+ Partials       2633     2413      -220     
Flag Coverage Δ
unittests 49.93% <42.13%> (+15.01%) ⬆️

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

Impacted Files Coverage Δ
.../main/java/org/apache/pulsar/PulsarStandalone.java 0.00% <0.00%> (ø)
.../apache/pulsar/broker/admin/impl/ClustersBase.java 76.66% <0.00%> (+67.62%) ⬆️
...pache/pulsar/broker/admin/impl/NamespacesBase.java 63.32% <ø> (+48.79%) ⬆️
.../pulsar/broker/service/AbstractBaseDispatcher.java 52.14% <0.00%> (+6.28%) ⬆️
...che/pulsar/broker/service/BacklogQuotaManager.java 12.39% <0.00%> (+2.91%) ⬆️
.../pulsar/broker/service/BrokerServiceException.java 38.88% <0.00%> (+13.88%) ⬆️
...ava/org/apache/pulsar/broker/service/Consumer.java 71.27% <0.00%> (+9.26%) ⬆️
...ava/org/apache/pulsar/broker/service/Producer.java 62.13% <0.00%> (+2.49%) ⬆️
...pulsar/broker/service/PulsarCommandSenderImpl.java 68.71% <0.00%> (+2.05%) ⬆️
...va/org/apache/pulsar/broker/service/ServerCnx.java 46.59% <0.00%> (+1.26%) ⬆️
... and 407 more

@codelipenghui
codelipenghui merged commit 58765c1 into apache:master Oct 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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