-
Notifications
You must be signed in to change notification settings - Fork 173
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
base: main
Are you sure you want to change the base?
refresh ml key #3934
Conversation
I am adding more IT for cover the fix. |
Is this possible to explain this more? Does that mean node has a stale cached key? We create key only one time. How node's key information can be different? Also how important is it to refresh in a regular interval? Seems like one time refresh is required, why do we need to keep refreshing? |
plugin/src/main/java/org/opensearch/ml/cluster/MLSyncUpCron.java
Outdated
Show resolved
Hide resolved
Signed-off-by: Jing Zhang <[email protected]>
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
--signoff
.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.