Skip to content

Fix Redis multiplexer ownership#5

Closed
ReubenBond wants to merge 1 commit into
miguelhasse:fix/redis-grain-directory-uninitialize-exceptionfrom
ReubenBond:reubenbond/redis-shared-multiplexer-ownership
Closed

Fix Redis multiplexer ownership#5
ReubenBond wants to merge 1 commit into
miguelhasse:fix/redis-grain-directory-uninitialize-exceptionfrom
ReubenBond:reubenbond/redis-shared-multiplexer-ownership

Conversation

@ReubenBond

Copy link
Copy Markdown

Follow-up for dotnet#9940 based on review feedback.

Updates Redis providers to distinguish owned Redis multiplexers from shared DI-provided multiplexers:

  • Change Redis CreateMultiplexer delegates to return (Multiplexer, IsShared).
  • Mark ServiceKey-resolved multiplexers as shared.
  • Skip CloseAsync/Dispose for shared multiplexers while still cleaning up provider references and grain-directory event handlers.
  • Update Redis API snapshots.

Validation:

  • dotnet build test\Extensions\Orleans.Redis.Tests\Orleans.Redis.Tests.csproj --no-restore --tl:off --verbosity:minimal

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@ReubenBond

Copy link
Copy Markdown
Author

Closing: this was created against the wrong base repository/branch.

@ReubenBond ReubenBond closed this May 28, 2026
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.

1 participant