Skip to content

Add missing query CleanupDefunctSiloEntriesKey to MySQL-Clustering - #8896

Merged
ReubenBond merged 3 commits into
dotnet:mainfrom
juan-arias:fix/add-missing-query-in-mysql-clustering-script
Aug 10, 2026
Merged

ReubenBond merged 3 commits into
dotnet:mainfrom
juan-arias:fix/add-missing-query-in-mysql-clustering-script

Conversation

@juan-arias

@juan-arias juan-arias commented Mar 7, 2024

Copy link
Copy Markdown
Contributor

Problem:

As written in the issue #8676 and docs, to set up ADO.NET clustering using the MySQL you need to run 2 scripts in sequence:

main script for MySQL
clustering script for MySQL
However, the clustering script does not include the creation of the CleanupDefunctSiloEntriesKey query required by the ADO.NET implementation (Microsoft.Orleans.Clustering.AdoNet) in both the 7.2.x and the 8.0.x versions of Orleans.

Missing query causes an exception at program startup.

Proposed solution:

Add the missing query to clustering sql script.

Followed the same pattern as proposed in #8811

Microsoft Reviewers: Open in CodeFlow

@SylvainRollinetSoftcom

Copy link
Copy Markdown

Is there something blocking the merge of this PR? I just had this problem and I see that multiple related issues are opened.

@juan-arias

Copy link
Copy Markdown
Contributor Author

@dotnet-policy-service agree

juan-arias and others added 3 commits August 10, 2026 08:41
This is the same issue described in dotnet#8676 but for MySQL.

This PR will update it in a similar way as dotnet#8811
Preserve existing and customized cleanup queries when the versioned migration follows the base provider script.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Use the MySQL invariant so the provider CI connection string is selected instead of skipping the liveness suite.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 8bf7d142-d53c-4bc0-8709-2b3db4807b34
@ReubenBond
ReubenBond force-pushed the fix/add-missing-query-in-mysql-clustering-script branch from 9af569f to 7838e68 Compare August 10, 2026 15:41
@ReubenBond
ReubenBond merged commit 7d307ca into dotnet:main Aug 10, 2026
71 checks passed
This was referenced Aug 28, 2026
@github-actions github-actions Bot locked and limited conversation to collaborators Sep 10, 2026
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.

3 participants