Skip to content

Conversation

@zhiyuanliang-ms
Copy link
Member

@zhiyuanliang-ms zhiyuanliang-ms commented Sep 10, 2025

Why this PR?

When sentinel key is watched for refresh,

If we detect any sentinel key is changed, the provider will reload all selected kvs. Previously, it will also reload all watched settings, this behavior is same as .NET provider. However, as #93 said, .NET provider will also serve watched settings in the configuration, but other providers don't have this behavior. So there is no need to reload all watched settings, since it may cause side effect that we will miss a refresh.

For example,
there are two sentinel keys: key1 and key2

When key1 is changed, we trigger a refresh-all, during the refresh-all, key2 is changed, we reload it. This signal will miss for next refresh call.

@zhiyuanliang-ms zhiyuanliang-ms merged commit 83c3e11 into main Sep 10, 2025
6 checks passed
@zhiyuanliang-ms zhiyuanliang-ms deleted the zhiyuanliang/not-reload-all-watched-setting branch September 10, 2025 10:50
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