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

Sync updated configs from primary master to standby master and worker #17850

Open
wants to merge 10 commits into
base: update-config
Choose a base branch
from

Conversation

maobaolong
Copy link
Contributor

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,

  1. If you propose a new API, clarify the use case for a new API.
  2. If you fix a bug, describe the bug.

Does this PR introduce any user facing changes?

Please list the user-facing changes introduced by your change, including

  1. change in user-facing APIs
  2. addition or removal of property keys
  3. webui

@lucyge2022
Copy link
Contributor

@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> {
Copy link
Contributor

Choose a reason for hiding this comment

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

why need this?

Copy link
Contributor

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());
Copy link
Contributor

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);
Copy link
Contributor

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

@maobaolong maobaolong changed the base branch from master-2.x to update-config August 13, 2023 23:48
alluxio-bot pushed a commit that referenced this pull request Oct 26, 2023
### 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants