Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mention DeleteObjectReference when talking about Orleans Observers #43439

Open
Tragetaschen opened this issue Nov 13, 2024 · 0 comments
Open
Labels

Comments

@Tragetaschen
Copy link

Tragetaschen commented Nov 13, 2024

Describe the issue or suggestion

https://github.com/dotnet/docs/blob/main/docs/orleans/grains/observers.md

The observers page teaches calling CreateObjectReference to enable an Orleans client to register an IGrainObserver with the library. It does not mention that this call needs to be paired with DeleteObjectReference.

If the latter is not called when done—at least for the OutsideRuntimeClient—a small reference remains in the InvokableObjectManager.localObjects dictionary, effectively becoming a memory leak, that will kill the (client) process eventually.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant