GithubHelp home page GithubHelp logo

Comments (5)

ReubenBond avatar ReubenBond commented on June 21, 2024 2

In 3.x, there was a global option set on by default to try to allow call-chain reentrancy. The implementation was not effective or correct. In 7.x+, you still have the option, but it's on a per-call-site basis. See the docs on call-chain-reentrancy here, with a demonstration of how to accomplish this: https://learn.microsoft.com/en-us/dotnet/orleans/grains/request-scheduling#call-chain-reentrancy

from orleans.

MickaelThumerel avatar MickaelThumerel commented on June 21, 2024

Using AsReference provide you a proxy class . The same use by external to access the grain.
So the rule of mono thread access occured.
You are in the grain and you try to access the same grain method passing by the outside => DEAD LOCK

It's like entering your house, closing the door, leaving from the windows and try the re-enter by the locked door.

Try tagging "GetName" with alwaysinterleaveattribute

This will allow recursive call.

from orleans.

cbgrasshopper avatar cbgrasshopper commented on June 21, 2024

So I guess the bug was in Orleans 3.x, which did not deadlock?

from orleans.

MickaelThumerel avatar MickaelThumerel commented on June 21, 2024

Migration 3x ot 7x

from orleans.

cbgrasshopper avatar cbgrasshopper commented on June 21, 2024

I understand the principle and I'm pretty sure the intentions were the same in Orleans 3.x. It just so happened that we had a few places in our Orleans 3.x implementation that used code similar to my example without any problem. We are currently migrating to Orleans 8.x and encountered the deadlock and were surprised by the difference in behavior.

from orleans.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.