components-contrib icon indicating copy to clipboard operation
components-contrib copied to clipboard

[redis Configuration]After the dapr is started, the newly added key cannot be subscribed

Open saber-wang opened this issue 3 years ago • 3 comments

Expected Behavior

If do not specify a key, you can subscribe to the newly added configuration item.

Actual Behavior

Cannot subscribe to the newly added configuration item

Steps to Reproduce the Problem

  1. Do not specify key subscription configuration
using var client = new DaprClientBuilder().Build();
var _configurationResponse = await client.SubscribeConfiguration("configuration",new List<string>());
 await foreach (var items in _configurationResponse.Source.WithCancellation(cancellationToken))
     {
        _logger.LogInformation("{@items}", items);
     }
  1. Add a key that does not exist in redis
  2. Observation log (no output)

saber-wang avatar Aug 23 '22 03:08 saber-wang

Sounds like whenever a key is not found there should be an attempt to refresh the list of known keys.

Which configuration store is this? Redis? This problem will be specific to the configuration store. (We have multiple configuration stores now)

berndverst avatar Aug 26 '22 17:08 berndverst

@berndverst Yes, the current test is redis.

saber-wang avatar Aug 27 '22 05:08 saber-wang

Related issue is here in runtime - https://github.com/dapr/dapr/issues/5183 IMO the problem is in current impln for subscribe all in runtime. The solution may span both runtime and specific components.

pravinpushkar avatar Sep 20 '22 04:09 pravinpushkar

/assign

pravinpushkar avatar Oct 06 '22 11:10 pravinpushkar