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

MongoDB Transactions requires replicas #5238

Open
feritzcan2 opened this issue Aug 9, 2024 · 7 comments · May be fixed by #5712
Open

MongoDB Transactions requires replicas #5238

feritzcan2 opened this issue Aug 9, 2024 · 7 comments · May be fixed by #5712
Labels
area-integrations Issues pertaining to Aspire Integrations packages mongodb Issues related to mongodb integrations
Milestone

Comments

@feritzcan2
Copy link

Hello, we are using MongoDB and recently we have integrated with aspire.
However, running MongoDB transactions requires replicas. As I checked I couldn't find any solution right now.

Can you assist me if its possible please?

@dotnet-issue-labeler dotnet-issue-labeler bot added the area-app-model Issues pertaining to the APIs in Aspire.Hosting, e.g. DistributedApplication label Aug 9, 2024
@davidfowl davidfowl added area-integrations Issues pertaining to Aspire Integrations packages feature and removed area-app-model Issues pertaining to the APIs in Aspire.Hosting, e.g. DistributedApplication labels Sep 7, 2024
@jakoss
Copy link

jakoss commented Sep 11, 2024

We are also interested in that. It became more important after MongoDB EF Provider 8.1 enabled transactions by default and for now we have to explicitly disable those for local work

@twsouthwick twsouthwick linked a pull request Sep 14, 2024 that will close this issue
16 tasks
@twsouthwick
Copy link
Member

I opened a PR that enables with the extension method:

namespace Aspire.Hosting;

public static class MongoDBBuilderExtensions
{
+  public static IResourceBuilder<MongoDBServerResource> WithReplicaSet(this IResourceBuilder<MongoDBServerResource> builder, string? replicaSet = null);
}

@davidfowl davidfowl added the mongodb Issues related to mongodb integrations label Sep 14, 2024
@feritzcan2
Copy link
Author

I opened a PR that enables with the extension method:

namespace Aspire.Hosting;



public static class MongoDBBuilderExtensions

{

+  public static IResourceBuilder<MongoDBServerResource> WithReplicaSet(this IResourceBuilder<MongoDBServerResource> builder, string? replicaSet = null);

}

How can i track status?

@jakoss
Copy link

jakoss commented Sep 14, 2024

How can i track status?

Here: #5712

It's also linked in the right menu of this issue

@joperezr joperezr added the untriaged New issue has not been triaged label Oct 15, 2024
@davidfowl davidfowl removed the feature label Oct 16, 2024
@eerhardt eerhardt marked this as a duplicate of #6811 Jan 14, 2025
@eerhardt eerhardt added this to the Backlog milestone Jan 14, 2025
@feritzcan2
Copy link
Author

@jakoss is it gonna be published any soon? Pr was open since september :(

@eerhardt eerhardt removed the untriaged New issue has not been triaged label Jan 14, 2025
@davidfowl
Copy link
Member

No, this PR needs to be replat on top of a new capability that isn't yet implemented. Being able to run commands in the container, on start. Either that or we change the entrypoint of the build in container to be a shell script that does this.

@davidfowl
Copy link
Member

Actually, I'll follow up with @twsouthwick to see if we can pull something off for 9.x, there may be options here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-integrations Issues pertaining to Aspire Integrations packages mongodb Issues related to mongodb integrations
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants