[fix][broker] Support zookeeper read-only config. - #19156
Conversation
…lowReadOnlyOperations`.
| ) | ||
| private int zooKeeperCacheExpirySeconds = -1; | ||
|
|
||
| @Deprecated |
There was a problem hiding this comment.
Why are we add deprecated fields? Seems not necessary.
There was a problem hiding this comment.
If the user uses the old properties, it config zookeeperAllowReadOnlyOperations=true enough, instead to comprehend the new config.
There was a problem hiding this comment.
Could we remove the zooKeeperAllowReadOnlyOperations config? Because there seems is no compatible issue
There was a problem hiding this comment.
Seems we need to remove it.
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #19156 +/- ##
============================================
+ Coverage 46.42% 47.61% +1.18%
- Complexity 10437 10824 +387
============================================
Files 703 713 +10
Lines 68816 69736 +920
Branches 7377 7497 +120
============================================
+ Hits 31950 33203 +1253
+ Misses 33252 32823 -429
- Partials 3614 3710 +96
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
|
@Technoboy- 2.9.x 2.10.x 2.11.x also need this pr. |
There was a problem hiding this comment.
LGTM,
But I have to mention one thing If you want to cherry-pick this PR to branch-2.9, you've got to support and cherry-pick zooKeeperAllowReadOnlyOperations configuration first and then push another PR to introduce metadataStoreAllowReadOnlyOperations and deprecate the previous one.
The reason is that branch-2.9 has no metadata**** configuration. So, if we introduce a new config named metadata****, it's weird.
Please let me know if you have any concerns. Thanks a lot!
/cc @Technoboy- @Jason918
I appreciate your reminder. |
mattisonchao
left a comment
There was a problem hiding this comment.
The author understands the problem I mentioned and the code LGTM, I will approve it and the author will choose a good approach to solve the problem.
|
This is part 1, introduce |
(cherry picked from commit accae9f)
|
@horizonzy Do we need to set the default value for |
Yes, it need. I will add it in the broker.conf. |
…) (apache#19637) Co-authored-by: Yan Zhao <horizonzy@apache.org> (cherry picked from commit a8f3c81)
Fixes #16489
Master Issue: #16489
Motivation
Export config
metadataStoreAllowReadOnlyOperationsandzooKeeperAllowReadOnlyOperations.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: