orleans icon indicating copy to clipboard operation
orleans copied to clipboard

Remove stream producer when cleaning pubsub cache

Open benjaminpetit opened this issue 1 year ago • 0 comments

Fix #7793

In PersistentStreamPullingAgent:

  • Removed the logic to remove from the pubsub cache when no consumers are registered: if a stream is active but has no subscribers, it will avoid multiple useless calls to the pubsub.
  • Remove the pulling agent as a producer when cleaning the pubsub cache. It will fix #7793 and should avoid useless calls from the pubsub to the pulling agent, since calls to add/remove consumers from the pubsub are ignore by the pulling agent if the stream was not in the cache.
Microsoft Reviewers: Open in CodeFlow

benjaminpetit avatar Aug 10 '22 16:08 benjaminpetit