-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
Sync updated configs from primary master to standby master and worker #17850
base: update-config
Are you sure you want to change the base?
Conversation
@jiacheliu3 can you please help take a look? thanks |
* @param <K> the type of keys maintained by this map | ||
* @param <V> the type of mapped values | ||
*/ | ||
public class FixedSizeTreeMap<K, V> extends TreeMap<K, V> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why need this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use PriorityQueue?
public void heartbeat(long timeLimitMs) throws InterruptedException { | ||
if (Configuration.getBoolean(PropertyKey.CONF_SYNC_HEARTBEAT_ENABLED)) { | ||
try { | ||
Configuration.applyUpdatedConf(mClient.getConfAddress()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do not send rpc in this Configuration
class
* @param version a version to filter the updated configurations | ||
* @return the updated properties after the given version | ||
*/ | ||
Pair<List<Map<String, String>>, Long> getUpdatedConfiguration(long version); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
let's define an obj for this complicated data structure
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
…es and last version
### What changes are proposed in this pull request? Fix to support update new key, for example, template key. This is the dependency order. so we can review the bottom one first. #17305 ↓ #17780 ↓ #17850 ↓ #17856 ### Why are the changes needed? Without this PR, we cannot update template key or any other key didn't exist in PropertyKeys. ### Does this PR introduce any user facing changes? No. pr-link: #17856 change-id: cid-5caa981f178aa3581cd49ed845e3ebbfa6214a15
What changes are proposed in this pull request?
Please outline the changes and how this PR fixes the issue.
Why are the changes needed?
Please clarify why the changes are needed. For instance,
Does this PR introduce any user facing changes?
Please list the user-facing changes introduced by your change, including