Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[improve][admin] Opt-out of topic-existence check #23709

Merged
merged 4 commits into from
Dec 11, 2024

Conversation

omarkj
Copy link
Contributor

@omarkj omarkj commented Dec 10, 2024

In some cases users would like to be able to set permissions to topics that have not yet been created, for instance if a topic is going to be created lazily at a later time.

This change introduces a new configuration property for the broker to allow changing to that behaviour.

- [ ] `doc` <!-- Your PR contains doc changes -->
- [ ] `doc-required` <!-- Your PR changes impact docs and you will update later -->
- [x] `doc-not-needed` <!-- Your PR changes do not impact docs -->
- [ ] `doc-complete` <!-- Docs have been already added -->

Copy link

@omarkj Please add the following content to your PR description and select a checkbox:

- [ ] `doc` <!-- Your PR contains doc changes -->
- [ ] `doc-required` <!-- Your PR changes impact docs and you will update later -->
- [ ] `doc-not-needed` <!-- Your PR changes do not impact docs -->
- [ ] `doc-complete` <!-- Docs have been already added -->

@omarkj
Copy link
Contributor Author

omarkj commented Dec 10, 2024

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

@omarkj omarkj changed the title [improve][admin] Opt-out of topic-existance check [improve][admin] Opt-out of topic-existe\nce check Dec 10, 2024
@omarkj omarkj changed the title [improve][admin] Opt-out of topic-existe\nce check [improve][admin] Opt-out of topic-existence check Dec 10, 2024
Copy link
Member

@lhotari lhotari left a comment

Choose a reason for hiding this comment

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

Thanks for submitting this PR. I support this change (context).

@omarkj omarkj force-pushed the topic-existence-check-opt-out branch from 5b0bd1a to 1deb48c Compare December 11, 2024 02:43
… would like to be able to set permissions to topics that have not yet been created, for instance if a topic is going to be created lazily at a later time.
@omarkj omarkj force-pushed the topic-existence-check-opt-out branch from 1deb48c to 2ff2a3c Compare December 11, 2024 02:45
Copy link
Member

@lhotari lhotari left a comment

Choose a reason for hiding this comment

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

LGTM

@lhotari
Copy link
Member

lhotari commented Dec 11, 2024

Usually we require PIPs for changes for new configuration options. However in this case, this is addressing a breaking change that was introduced by PR #22547. That's why I think there's no need for a PIP. It would be great if PR #22547 could be documented afterwards by @Technoboy- since that PR was a breaking change and it would have required a PIP according to our criteria.

@dao-jun dao-jun added doc-required Your PR changes impact docs and you will update later. doc-not-needed Your PR changes do not impact docs ready-to-test and removed doc-label-missing doc-required Your PR changes impact docs and you will update later. labels Dec 11, 2024
@github-actions github-actions bot added doc-label-missing and removed doc-not-needed Your PR changes do not impact docs labels Dec 11, 2024
@dao-jun
Copy link
Member

dao-jun commented Dec 11, 2024

pls resolve the ci failures

@github-actions github-actions bot added doc-not-needed Your PR changes do not impact docs and removed doc-label-missing labels Dec 11, 2024
@codecov-commenter
Copy link

codecov-commenter commented Dec 11, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 74.37%. Comparing base (bbc6224) to head (c0af861).
Report is 783 commits behind head on master.

Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff              @@
##             master   #23709      +/-   ##
============================================
+ Coverage     73.57%   74.37%   +0.80%     
- Complexity    32624    35081    +2457     
============================================
  Files          1877     1945      +68     
  Lines        139502   147480    +7978     
  Branches      15299    16277     +978     
============================================
+ Hits         102638   109691    +7053     
- Misses        28908    29311     +403     
- Partials       7956     8478     +522     
Flag Coverage Δ
inttests 27.55% <8.69%> (+2.97%) ⬆️
systests 24.39% <8.69%> (+0.06%) ⬆️
unittests 73.76% <100.00%> (+0.91%) ⬆️

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

Files with missing lines Coverage Δ
...org/apache/pulsar/broker/ServiceConfiguration.java 98.98% <100.00%> (-0.41%) ⬇️
...pulsar/broker/admin/impl/PersistentTopicsBase.java 69.67% <100.00%> (+4.21%) ⬆️

... and 664 files with indirect coverage changes

@lhotari lhotari merged commit f571aa1 into apache:master Dec 11, 2024
51 of 52 checks passed
lhotari pushed a commit that referenced this pull request Dec 11, 2024
Co-authored-by: Ómar Yasin <[email protected]>
Co-authored-by: Lari Hotari <[email protected]>
(cherry picked from commit f571aa1)
lhotari pushed a commit that referenced this pull request Dec 11, 2024
Co-authored-by: Ómar Yasin <[email protected]>
Co-authored-by: Lari Hotari <[email protected]>
(cherry picked from commit f571aa1)
lhotari pushed a commit that referenced this pull request Dec 11, 2024
Co-authored-by: Ómar Yasin <[email protected]>
Co-authored-by: Lari Hotari <[email protected]>
(cherry picked from commit f571aa1)
@omarkj omarkj deleted the topic-existence-check-opt-out branch December 11, 2024 17:33
nikhil-ctds pushed a commit to datastax/pulsar that referenced this pull request Dec 19, 2024
Co-authored-by: Ómar Yasin <[email protected]>
Co-authored-by: Lari Hotari <[email protected]>
(cherry picked from commit f571aa1)
(cherry picked from commit ef57c2a)
nikhil-ctds pushed a commit to datastax/pulsar that referenced this pull request Dec 23, 2024
Co-authored-by: Ómar Yasin <[email protected]>
Co-authored-by: Lari Hotari <[email protected]>
(cherry picked from commit f571aa1)
(cherry picked from commit ef57c2a)
nikhil-ctds pushed a commit to datastax/pulsar that referenced this pull request Dec 27, 2024
Co-authored-by: Ómar Yasin <[email protected]>
Co-authored-by: Lari Hotari <[email protected]>
(cherry picked from commit f571aa1)
(cherry picked from commit ef57c2a)
srinath-ctds pushed a commit to datastax/pulsar that referenced this pull request Dec 30, 2024
Co-authored-by: Ómar Yasin <[email protected]>
Co-authored-by: Lari Hotari <[email protected]>
(cherry picked from commit f571aa1)
(cherry picked from commit ef57c2a)
hanmz pushed a commit to hanmz/pulsar that referenced this pull request Feb 12, 2025
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.

4 participants