Skip to content

Conversation

@Technoboy-
Copy link
Contributor

Motivation

Add subscribing regex topic test for #18283.

Documentation

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

@Technoboy- Technoboy- self-assigned this Nov 7, 2022
@Technoboy- Technoboy- added this to the 2.12.0 milestone Nov 7, 2022
@github-actions github-actions bot added the doc-not-needed Your PR changes do not impact docs label Nov 7, 2022
@Technoboy- Technoboy- changed the title Add subscribing regex topic test for delete_when_subscriptions_caught_up. [improve][test] Add subscribing regex topic test for delete_when_subscriptions_caught_up. Nov 7, 2022
@codecov-commenter
Copy link

codecov-commenter commented Nov 7, 2022

Codecov Report

Merging #18368 (d6e2937) into master (a2c1534) will decrease coverage by 2.18%.
The diff coverage is n/a.

Impacted file tree graph

@@             Coverage Diff              @@
##             master   #18368      +/-   ##
============================================
- Coverage     47.23%   45.04%   -2.19%     
- Complexity    10430    10639     +209     
============================================
  Files           692      757      +65     
  Lines         67766    72782    +5016     
  Branches       7260     7826     +566     
============================================
+ Hits          32009    32788     +779     
- Misses        32192    36335    +4143     
- Partials       3565     3659      +94     
Flag Coverage Δ
unittests 45.04% <ø> (-2.19%) ⬇️

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

Impacted Files Coverage Δ
...ker/service/schema/exceptions/SchemaException.java 60.00% <0.00%> (-40.00%) ⬇️
.../apache/pulsar/broker/admin/impl/PackagesBase.java 54.12% <0.00%> (-13.77%) ⬇️
...tent/NonPersistentDispatcherMultipleConsumers.java 40.74% <0.00%> (-12.35%) ⬇️
...apache/pulsar/broker/service/TopicListService.java 42.62% <0.00%> (-12.30%) ⬇️
.../org/apache/bookkeeper/mledger/impl/EntryImpl.java 69.62% <0.00%> (-11.27%) ⬇️
...ce/schema/validator/StructSchemaDataValidator.java 52.38% <0.00%> (-9.53%) ⬇️
.../pulsar/broker/service/SharedConsumerAssignor.java 61.11% <0.00%> (-7.41%) ⬇️
...keeper/mledger/impl/cache/RangeEntryCacheImpl.java 45.79% <0.00%> (-6.31%) ⬇️
...oker/service/schema/SchemaRegistryServiceImpl.java 59.45% <0.00%> (-5.41%) ⬇️
...ction/buffer/impl/TransactionBufferClientImpl.java 76.74% <0.00%> (-4.66%) ⬇️
... and 120 more

Assert.assertFalse(admin.topics().getList("prop/ns-abc").contains(topic2));
});
consumer.close();
consumer2.close();
Copy link
Contributor

Choose a reason for hiding this comment

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

We should check that consumer2 has no internal consumers eventually or we can say all the internal consumers are closed due to the topic being deleted.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

updated

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ah, line 358 has checked all the consumers.

Copy link
Contributor

@gaoran10 gaoran10 left a comment

Choose a reason for hiding this comment

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

Sorry, I have a little confused, why the topic can be deleted? It seems the topic has connected consumers.

@Technoboy-
Copy link
Contributor Author

Sorry, I have a little confused, why the topic can be deleted? It seems the topic has connected consumers.

Ah, some motivation and modification can be found here #18283
I also update the related doc.

@Technoboy- Technoboy- force-pushed the improve-topic-policies branch from 9ea0a2b to 2b81800 Compare November 15, 2022 08:29
@Technoboy- Technoboy- merged commit 868458a into apache:master Nov 15, 2022
codelipenghui pushed a commit that referenced this pull request Nov 16, 2022
…scriptions_caught_up`. (#18368)

(cherry picked from commit 868458a)
codelipenghui pushed a commit that referenced this pull request Nov 16, 2022
…scriptions_caught_up`. (#18368)

(cherry picked from commit 868458a)
codelipenghui pushed a commit that referenced this pull request Nov 16, 2022
…scriptions_caught_up`. (#18368)

(cherry picked from commit 868458a)
@codelipenghui codelipenghui added the cherry-picked/branch-2.9 Archived: 2.9 is end of life label Nov 16, 2022
congbobo184 pushed a commit that referenced this pull request Nov 27, 2022
…scriptions_caught_up`. (#18368)

(cherry picked from commit 868458a)
@Technoboy- Technoboy- deleted the improve-topic-policies branch September 14, 2023 11:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants