Navigation Menu

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

[WIP] Remove catalog activations locking #5526

Closed
wants to merge 1 commit into from

Conversation

ReubenBond
Copy link
Member

No description provided.

@@ -443,20 +439,19 @@ public void GetGrainTypeInfo(int typeCode, out string grainClass, out PlacementS
activatedPromise = Task.CompletedTask;
PlacementStrategy placement;

lock (activations)
while (true)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this smells bad. why are we adding infinite retry here while the original logic didn't?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is a standard lock-free approach when dealing with optimistic concurrency conflicts


In reply to: 274565380 [](ancestors = 274565380)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see. Thanks for explaining !

@jdom
Copy link
Member

jdom commented Apr 11, 2019

                // We want to do this (RegisterMessageTarget) under the same lock that we tested TryGetActivationData. They both access ActivationDirectory.

no longer true


Refers to: src/Orleans.Runtime/Catalog/Catalog.cs:474 in cfd0c4b. [](commit_id = cfd0c4b, deletion_comment = False)

@jdom
Copy link
Member

jdom commented Apr 11, 2019

    private void OnSiloStatusChange(SiloAddress updatedSilo, SiloStatus status)

can this be called concurrently or is this single threaded? Because if it's the first option, you'll have to use some kind of locking primitive, not necessarily on activations.


Refers to: src/Orleans.Runtime/Catalog/Catalog.cs:1383 in cfd0c4b. [](commit_id = cfd0c4b, deletion_comment = False)

Copy link
Member

@jdom jdom left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit:

@ReubenBond ReubenBond changed the title [WIP] Remove catalog activations locking Remove catalog activations locking Jun 18, 2019
@ReubenBond ReubenBond changed the title Remove catalog activations locking [WIP] Remove catalog activations locking Jun 18, 2019
@ReubenBond ReubenBond closed this Jul 9, 2019
@github-actions github-actions bot locked and limited conversation to collaborators Dec 2, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants