-
Notifications
You must be signed in to change notification settings - Fork 3.7k
[feat][fn] Fallback to using STATE_STORAGE_SERVICE_URL in PulsarMetadataStateStoreProviderImpl.init
#24721
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
[feat][fn] Fallback to using STATE_STORAGE_SERVICE_URL in PulsarMetadataStateStoreProviderImpl.init
#24721
Conversation
…tadataStateStoreProviderImpl.init
|
@jiangpengcheng Do you have a chance to add a new integration test where this problem gets reproduced and where this fix addresses it? |
sure, I will add some integration tests |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #24721 +/- ##
============================================
+ Coverage 74.17% 74.19% +0.02%
- Complexity 33470 33502 +32
============================================
Files 1895 1896 +1
Lines 148029 148111 +82
Branches 17142 17164 +22
============================================
+ Hits 109796 109891 +95
+ Misses 29479 29446 -33
- Partials 8754 8774 +20
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
|
Great work @jiangpengcheng |
…tadataStateStoreProviderImpl.init` (apache#24721) (cherry picked from commit 415c6fa) (cherry picked from commit 3ec5e64)
…tadataStateStoreProviderImpl.init` (apache#24721) (cherry picked from commit 415c6fa) (cherry picked from commit 3ec5e64)
…tadataStateStoreProviderImpl.init` (apache#24721)
…tadataStateStoreProviderImpl.init` (apache#24721)
Fixes #24720
Motivation
The
PulsarMetadataStateStoreProviderImpl.initmethod fetches theMETADATA_URLfield from the config argument, but it doesn't exist in normal case, fallback tostateStorageServiceUrljust like otherStateStoreProviderImplModifications
When the provided argument doesn't contains a
METADATA_URLfield, fallback to fetching with keystateStorageServiceUrlVerifying this change
Make sure that the change passes the CI checks.
added new integration tests in:
Does this pull request potentially affect one of the following parts:
If the box was checked, please highlight the changes
Documentation
docdoc-requireddoc-not-neededdoc-completeMatching PR in forked repository
PR in forked repository: jiangpengcheng#47