Skip to content

[improve][test] Add subscribing regex topic test for delete_when_subscriptions_caught_up. - #18368

Merged
Technoboy- merged 5 commits into
apache:masterfrom
Technoboy-:improve-topic-policies
Nov 15, 2022
Merged

[improve][test] Add subscribing regex topic test for delete_when_subscriptions_caught_up.#18368
Technoboy- merged 5 commits into
apache:masterfrom
Technoboy-:improve-topic-policies

Conversation

@Technoboy-

Copy link
Copy Markdown
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

codecov-commenter commented Nov 7, 2022

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 45.04%. Comparing base (a2c1534) to head (d6e2937).
⚠️ Report is 3365 commits behind head on master.

Additional details and impacted files

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.
see 130 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.

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

Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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.

@gaoran10 gaoran10 left a comment

Copy link
Copy Markdown
Contributor

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
Copy Markdown
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