Skip to content

refresh ml key #3934

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

jngz-es
Copy link
Collaborator

@jngz-es jngz-es commented Jun 20, 2025

Description

Refresh ML key from the index to keep the consistence between memory and index which is under a flag. In some edge cases, we could get divergence between the key cached in memory and in the system index. Currently we only have to restart the node to re-fetch the key from the index to mitigate the issue. With the fix, we can only use a flag to control.

Related Issues

Resolves #[Issue number to be closed when this PR is merged]

Check List

  • New functionality includes testing.
  • New functionality has been documented.
  • API changes companion pull request created.
  • Commits are signed per the DCO using --signoff.
  • Public documentation issue/PR created.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

@jngz-es
Copy link
Collaborator Author

jngz-es commented Jun 20, 2025

I am adding more IT for cover the fix.

@jngz-es jngz-es had a problem deploying to ml-commons-cicd-env June 20, 2025 18:58 — with GitHub Actions Error
@jngz-es jngz-es had a problem deploying to ml-commons-cicd-env June 20, 2025 18:58 — with GitHub Actions Failure
@jngz-es jngz-es had a problem deploying to ml-commons-cicd-env June 20, 2025 18:58 — with GitHub Actions Failure
@jngz-es jngz-es had a problem deploying to ml-commons-cicd-env June 20, 2025 18:58 — with GitHub Actions Error
@jngz-es jngz-es had a problem deploying to ml-commons-cicd-env June 20, 2025 19:13 — with GitHub Actions Error
@jngz-es jngz-es had a problem deploying to ml-commons-cicd-env June 20, 2025 19:13 — with GitHub Actions Failure
@jngz-es jngz-es had a problem deploying to ml-commons-cicd-env June 20, 2025 19:13 — with GitHub Actions Failure
@jngz-es jngz-es had a problem deploying to ml-commons-cicd-env June 20, 2025 19:13 — with GitHub Actions Error
@jngz-es jngz-es had a problem deploying to ml-commons-cicd-env June 20, 2025 19:20 — with GitHub Actions Failure
@jngz-es jngz-es had a problem deploying to ml-commons-cicd-env June 20, 2025 19:20 — with GitHub Actions Error
@jngz-es jngz-es had a problem deploying to ml-commons-cicd-env June 20, 2025 19:20 — with GitHub Actions Error
@jngz-es jngz-es had a problem deploying to ml-commons-cicd-env June 20, 2025 19:20 — with GitHub Actions Failure
@jngz-es jngz-es temporarily deployed to ml-commons-cicd-env June 20, 2025 20:24 — with GitHub Actions Inactive
@jngz-es jngz-es temporarily deployed to ml-commons-cicd-env June 20, 2025 20:24 — with GitHub Actions Inactive
@jngz-es jngz-es temporarily deployed to ml-commons-cicd-env June 25, 2025 19:22 — with GitHub Actions Inactive
@jngz-es jngz-es had a problem deploying to ml-commons-cicd-env June 25, 2025 19:22 — with GitHub Actions Failure
@jngz-es jngz-es had a problem deploying to ml-commons-cicd-env June 25, 2025 20:13 — with GitHub Actions Error
@jngz-es jngz-es had a problem deploying to ml-commons-cicd-env June 25, 2025 20:13 — with GitHub Actions Failure
@jngz-es jngz-es temporarily deployed to ml-commons-cicd-env June 25, 2025 20:13 — with GitHub Actions Inactive
@jngz-es jngz-es temporarily deployed to ml-commons-cicd-env June 25, 2025 20:13 — with GitHub Actions Inactive
@jngz-es jngz-es had a problem deploying to ml-commons-cicd-env June 25, 2025 21:17 — with GitHub Actions Error
@jngz-es jngz-es had a problem deploying to ml-commons-cicd-env June 25, 2025 21:17 — with GitHub Actions Failure
@jngz-es jngz-es temporarily deployed to ml-commons-cicd-env June 26, 2025 18:04 — with GitHub Actions Inactive
@jngz-es jngz-es temporarily deployed to ml-commons-cicd-env June 26, 2025 18:04 — with GitHub Actions Inactive
@jngz-es jngz-es temporarily deployed to ml-commons-cicd-env June 26, 2025 18:04 — with GitHub Actions Inactive
@jngz-es jngz-es temporarily deployed to ml-commons-cicd-env June 26, 2025 18:04 — with GitHub Actions Inactive
Signed-off-by: Jing Zhang <[email protected]>
@jngz-es jngz-es temporarily deployed to ml-commons-cicd-env June 26, 2025 18:09 — with GitHub Actions Inactive
@jngz-es jngz-es had a problem deploying to ml-commons-cicd-env June 26, 2025 18:09 — with GitHub Actions Failure
@jngz-es jngz-es had a problem deploying to ml-commons-cicd-env June 26, 2025 18:09 — with GitHub Actions Error
@jngz-es jngz-es temporarily deployed to ml-commons-cicd-env June 26, 2025 18:09 — with GitHub Actions Inactive
@jngz-es jngz-es had a problem deploying to ml-commons-cicd-env June 26, 2025 19:17 — with GitHub Actions Failure
@jngz-es jngz-es had a problem deploying to ml-commons-cicd-env June 26, 2025 19:17 — with GitHub Actions Error
@jngz-es jngz-es marked this pull request as ready for review June 26, 2025 19:17
@jngz-es jngz-es temporarily deployed to ml-commons-cicd-env June 26, 2025 20:55 — with GitHub Actions Inactive
@jngz-es jngz-es temporarily deployed to ml-commons-cicd-env June 26, 2025 20:55 — with GitHub Actions Inactive
@jngz-es jngz-es temporarily deployed to ml-commons-cicd-env June 26, 2025 21:59 — with GitHub Actions Inactive
@jngz-es jngz-es temporarily deployed to ml-commons-cicd-env June 26, 2025 21:59 — with GitHub Actions Inactive
// Refresh the key from the config index.
public void refreshMasterKey(ActionListener<Boolean> listener) {
try {
// Currently, we only handle no tenant case.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is that because the tenantId is not available when running the syncUp on each node? otherwise just fill in the tenantId in the initMasterKeyFromIndex(tenantId) it should refresh the masterKey.

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.

2 participants