dotnet / dotnet/orleans

PersistentStreamPullingAgent does not Unregister itself as producer when no cunsumers left.

Open
#7,793 2 comments 1 reaction 1 assignee View on GitHub

@benjaminpetit is already working on this.

Since Jun 16, 2022.

area-streaming
Dominant language
C#
Stars
10.9k
Forks
2.1k
Avg merge
13h 56m
Merged PRs (30d)
351

Description

I have an issue when using Azure Blob Storage for PubSubStore in combination with Azure Storage Queues for Streams.

When the last consumer is unregistered from a stream, PersistentStreamPullingAgent removes the streamId from its cache.

![image](https://user-images.githubusercontent.com/72133017/174084700-3d9cf853-de7b-4cb8-8d4c-10d45c7fc863.png)

When the agent is shutdown it is unable to remove itself as a producer from that stream anymore because it is removed from cache

![image](https://user-images.githubusercontent.com/72133017/174084813-44ecfac6-ad5f-4fc2-a282-f219fb759a12.png)

Due to this behaviour, the blobs in the PubSubStore are not removed, beacause there will always be a producer for that stream.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.