Closed tonysneed closed 1 year ago
Used SimplePubSub sample project to reproduce the error condition and validate fix.
Program
in Publisher project to disable schema registry.
services.AddDaprEventBus(eventBusOptions.PubSubName, options =>
options.UseSchemaRegistry = false);
Startup
in Subscriber project to disable event cache.
services.AddMongoEventCache(null, options =>
options.EnableEventCache = false);
This new version worked for me!
Describe the bug MongoDB Connection Live When Schema Registry or Event Cache Disabled
Expected behavior If Schema Registry or Event Cache Disabled, then no connection should be made to MondoDB
To Reproduce Turn off MongoDB. Disable Schema Registry or Event Cache An exception occurs about the db connection timing out
Make My Life Easier If possible, create a pull request that contains a failing unit test to reproduce the bug.
Screenshots If applicable, add screenshots to help explain your problem.
Additional context Add any other context about the problem here.
Additional resources Please refer to the Contributing Guidelines.