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

In GrainDirectoryResolver, replace HasNonDefaultDirectory with IsUsingDhtDirectory #8660

Merged
merged 1 commit into from
Oct 16, 2023

Conversation

benjaminpetit
Copy link
Member

@benjaminpetit benjaminpetit commented Oct 11, 2023

Fix #8632

HasNonDefaultDirectory was used to check if the directory was the default builtin (DHT) directory but was causing some logic issue when the default directory was overridden during config.

I renamed the method name and changed the logic, so it returns true only if the DHT directory is used for the target grain type.

Microsoft Reviewers: Open in CodeFlow

.ConfigureLogging(builder => builder.AddProvider(new XunitLoggerProvider(output)))
.UseLocalhostClustering();
});
this.host = hostBuilder.Build();
Copy link
Member

Choose a reason for hiding this comment

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

Even though it's not started, we should dispose of this after the tests complete

Copy link
Member

Choose a reason for hiding this comment

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

@benjaminpetit we can fix this in a follow-up

@ReubenBond ReubenBond merged commit bf0112d into dotnet:main Oct 16, 2023
@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.

Registering a non-DHT GrainDirectory as default does not actually cause that GrainDirectory to get used.
2 participants