GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Add missing query CleanupDefunctSiloEntriesKey to PostgreSQL-Clustering by tomaszstrejczek · Pull Request #9125 · dotnet/orleans

Conversation

@tomaszstrejczek

@tomaszstrejczek tomaszstrejczek commented Aug 25, 2024 •
edited by dotnet-policy-service Bot
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

Solves #8676 for PostgreSQL scripts by adding missing query CleanupDefunctSiloEntriesKey.
Follows the same pattern as #8896.

Microsoft Reviewers: Open in CodeFlow

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
ReubenBond
ReubenBond approved these changes Aug 27, 2024
View reviewed changes
@ReubenBond
ReubenBond force-pushed the main branch from b720b80 to 6f3f9d5 Compare October 1, 2024 21:59
@tomaszstrejczek

tomaszstrejczek commented Oct 11, 2024 via email

Copy link
Copy Markdown
Author
@dotnet-policy-service agree
…
________________________________ From: dotnet-policy-service[bot] ***@***.***> Sent: Friday, October 11, 2024 19:29 To: dotnet/orleans ***@***.***> Cc: tomaszstrejczek ***@***.***>; Mention ***@***.***> Subject: Re: [dotnet/orleans] Add missing query CleanupDefunctSiloEntriesKey to PostgreSQL-Clustering (PR #9125) @tomaszstrejczek<https://github.com/tomaszstrejczek> please read the following Contributor License Agreement(CLA). If you agree with the CLA, please reply with the following information. @dotnet-policy-service agree [company="{your company}"] Options: * (default - no company specified) I have sole ownership of intellectual property rights to my Submissions and I am not making Submissions in the course of work for my employer. @dotnet-policy-service agree * (when company given) I am making Submissions in the course of work for my employer (or my employer has intellectual property rights in my Submissions by contract or applicable law). I have permission from my employer to make Submissions and enter into this Agreement on behalf of my employer. By signing below, the defined term “You” includes me and my employer. @dotnet-policy-service agree company="Microsoft" Contributor License Agreement Contribution License Agreement This Contribution License Agreement ( “Agreement” ) is agreed to by the party signing below ( “You” ), and conveys certain license rights to the .NET Foundation ( “.NET Foundation” ) for Your contributions to .NET Foundation open source projects. This Agreement is effective as of the latest signature date below. 1. Definitions. “Code” means the computer software code, whether in human-readable or machine-executable form, that is delivered by You to .NET Foundation under this Agreement. “Project” means any of the projects owned or managed by .NET Foundation and offered under a license approved by the Open Source Initiative (www.opensource.org>). “Submit” is the act of uploading, submitting, transmitting, or distributing code or other content to any Project, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Project for the purpose of discussing and improving that Project, but excluding communication that is conspicuously marked or otherwise designated in writing by You as “Not a Submission.” “Submission” means the Code and any other copyrightable material Submitted by You, including any associated comments and documentation. 2. Your Submission. You must agree to the terms of this Agreement before making a Submission to any Project. This Agreement covers any and all Submissions that You, now or in the future (except as described in Section 4 below), Submit to any Project. 3. Originality of Work. You represent that each of Your Submissions is entirely Your original work. Should You wish to Submit materials that are not Your original work, You may Submit them separately to the Project if You (a) retain all copyright and license information that was in the materials as you received them, (b) in the description accompanying your Submission, include the phrase "Submission containing materials of a third party:" followed by the names of the third party and any licenses or other restrictions of which You are aware, and (c) follow any other instructions in the Project's written guidelines concerning Submissions. 4. Your Employer. References to “employer” in this Agreement include Your employer or anyone else for whom You are acting in making Your Submission, e.g. as a contractor, vendor, or agent. If Your Submission is made in the course of Your work for an employer or Your employer has intellectual property rights in Your Submission by contract or applicable law, You must secure permission from Your employer to make the Submission before signing this Agreement. In that case, the term “You” in this Agreement will refer to You and the employer collectively. If You change employers in the future and desire to Submit additional Submissions for the new employer, then You agree to sign a new Agreement and secure permission from the new employer before Submitting those Submissions. 5. Licenses. a. Copyright License. You grant .NET Foundation, and those who receive the Submission directly or indirectly from .NET Foundation, a perpetual, worldwide, non-exclusive, royalty-free, irrevocable license in the Submission to reproduce, prepare derivative works of, publicly display, publicly perform, and distribute the Submission and such derivative works, and to sublicense any or all of the foregoing rights to third parties. b. Patent License. You grant .NET Foundation, and those who receive the Submission directly or indirectly from .NET Foundation, a perpetual, worldwide, non-exclusive, royalty-free, irrevocable license under Your patent claims that are necessarily infringed by the Submission or the combination of the Submission with the Project to which it was Submitted to make, have made, use, offer to sell, sell and import or otherwise dispose of the Submission alone or with the Project. c. Other Rights Reserved. Each party reserves all rights not expressly granted in this Agreement. No additional licenses or rights whatsoever (including, without limitation, any implied licenses) are granted by implication, exhaustion, estoppel or otherwise. 6. Representations and Warranties. You represent that You are legally entitled to grant the above licenses. You represent that each of Your Submissions is entirely Your original work (except as You may have disclosed under Section 3 ). You represent that You have secured permission from Your employer to make the Submission in cases where Your Submission is made in the course of Your work for Your employer or Your employer has intellectual property rights in Your Submission by contract or applicable law. If You are signing this Agreement on behalf of Your employer, You represent and warrant that You have the necessary authority to bind the listed employer to the obligations contained in this Agreement. You are not expected to provide support for Your Submission, unless You choose to do so. UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING, AND EXCEPT FOR THE WARRANTIES EXPRESSLY STATED IN SECTIONS 3, 4, AND 6 , THE SUBMISSION PROVIDED UNDER THIS AGREEMENT IS PROVIDED WITHOUT WARRANTY OF ANY KIND, INCLUDING, BUT NOT LIMITED TO, ANY WARRANTY OF NONINFRINGEMENT, MERCHANTABILITY, OR FITNESS FOR A PARTICULAR PURPOSE. 7. Notice to .NET Foundation. You agree to notify .NET Foundation in writing of any facts or circumstances of which You later become aware that would make Your representations in this Agreement inaccurate in any respect. 8. Information about Submissions. You agree that contributions to Projects and information about contributions may be maintained indefinitely and disclosed publicly, including Your name and other information that You submit with Your Submission. 9. Governing Law/Jurisdiction. This Agreement is governed by the laws of the State of Washington, and the parties consent to exclusive jurisdiction and venue in the federal courts sitting in King County, Washington, unless no federal subject matter jurisdiction exists, in which case the parties consent to exclusive jurisdiction and venue in the Superior Court of King County, Washington. The parties waive all defenses of lack of personal jurisdiction and forum non-conveniens. 10. Entire Agreement/Assignment. This Agreement is the entire agreement between the parties, and supersedes any and all prior agreements, understandings or communications, written or oral, between the parties relating to the subject matter hereof. This Agreement may be assigned by .NET Foundation. .NET Foundation dedicates this Contribution License Agreement to the public domain according to the Creative Commons CC0 1. — Reply to this email directly, view it on GitHub<#9125 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AB4BYQYI3GCPKORMFKNNFVLZ3ADINAVCNFSM6AAAAABNCTHYWOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMBXHA2DONBYGU>. You are receiving this because you were mentioned.Message ID: ***@***.***>
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@NSTA2

NSTA2 commented Feb 4, 2025

Copy link
Copy Markdown
Contributor

I'm still experiencing this issue with the postgres clustering provider - presumably because it looks like this PR hasn't completed yet.
I've applied the relevant Sql command to my database manually as an interim workaround (Will this complete soon @ReubenBond ?)
Many Thanks

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@ReubenBond
ReubenBond force-pushed the main branch from 3361198 to 947d64b Compare February 5, 2025 16:42
ReubenBond
ReubenBond approved these changes Feb 5, 2025
View reviewed changes
@ReubenBond

ReubenBond commented Feb 5, 2025

Copy link
Copy Markdown
Member

This change seems to break the MySQL & MS SQL tests

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

ReubenBond
ReubenBond reviewed Feb 5, 2025
View reviewed changes
Comment thread test/Extensions/TesterAdoNet/RelationalUtilities/RelationalStorageForTesting.cs Resolved

Uh oh!

There was an error while loading. Please reload this page.

@ReubenBond

ReubenBond commented Feb 5, 2025

Copy link
Copy Markdown
Member

I reverted the change to RelationalStorageForTesting.cs. It wasn't clear to me how it's a necessary part of this PR

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@ReubenBond

ReubenBond commented Feb 5, 2025

Copy link
Copy Markdown
Member

Ok, it's because it was in the migrations directory. The idea is to run the base script and then the migration scripts in order. In this PR, you're merging a migration script back into the base script. That is OK by me, but we need to decide how to handle the migration script either by making them idempotent or by suppressing them from tests. The previous change to suppress them suppressed them for Postgres and the other providers, which caused other providers to fail.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@Shumozavr

Shumozavr commented Apr 16, 2025

Copy link
Copy Markdown

Up on this. It's really strange that 100% of users who'll start with orleans + adonet clustering will encounter this problem, and it's still not fixed.

m3nax, rsafier, and rubenwe reacted with thumbs up emoji
All reactions
  • 👍 3 reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@InCerryGit

InCerryGit commented Jun 17, 2025

Copy link
Copy Markdown

same issue.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@crashkonijn

crashkonijn commented Aug 20, 2025

Copy link
Copy Markdown

I just had this exact same issue when trying out Orleans for the first time. Manually adding this addition fixed the issues I had.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@tomaszstrejczek @ReubenBond
Add missing query CleanupDefunctSiloEntriesKey to PostgreSQL-Clusteri…
4a36993
…ng.sql
Copilot AI lite review requested due to automatic review settings August 10, 2026 14:26
@ReubenBond
ReubenBond force-pushed the main branch from 1f35d17 to 4a36993 Compare August 10, 2026 14:26
Copilot started reviewing on behalf of ReubenBond August 10, 2026 14:26
View session
Copilot AI reviewed Aug 10, 2026
View reviewed changes

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Pull request overview

Adds the missing CleanupDefunctSiloEntriesKey stored query to the PostgreSQL ADO.NET clustering schema script so Orleans can load all required queries at startup (aligning PostgreSQL with the prior MySQL fix in #8896).

Changes:

  • Adds an INSERT INTO OrleansQuery entry for CleanupDefunctSiloEntriesKey in the PostgreSQL clustering script.
Show a summary per file
File Description
src/AdoNet/Orleans.Clustering.AdoNet/PostgreSQL-Clustering.sql Adds the missing CleanupDefunctSiloEntriesKey query definition to complete the PostgreSQL clustering query set.

Review details

Tip

Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

  • Files reviewed: 1/1 changed files
  • Comments generated: 0
  • Review effort level: Lite

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@ReubenBond
Make PostgreSQL clustering migration idempotent
b00de17
Co-authored-by: Copilot App <[email protected]>
@ReubenBond

ReubenBond commented Aug 10, 2026

Copy link
Copy Markdown
Member

Addressed in b00de17. The PostgreSQL 3.7 clustering migration now uses ON CONFLICT (QueryKey) DO NOTHING, so upgrades still add the missing query while fresh schema setup can safely execute the base script followed by the migration without a duplicate primary-key failure. The existing PostgreSQL provider test setup concatenates the base and migration scripts, so the provider CI exercises this exact sequence.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

ReubenBond
ReubenBond approved these changes Aug 10, 2026
View reviewed changes
@ReubenBond
ReubenBond merged commit 80676ed into dotnet:main Aug 10, 2026
71 checks passed

Uh oh!

There was an error while loading. Please reload this page.

This was referenced Aug 28, 2026
Bump Microsoft.Orleans.Dashboard from 10.2.2 to 10.3.0 csrakowski/FeedManager#20
Merged
Bump Microsoft.Orleans.Persistence.AdoNet from 10.2.2 to 10.3.0 csrakowski/FeedManager#21
Merged
Bump Microsoft.Orleans.Persistence.Memory from 10.2.2 to 10.3.0 csrakowski/FeedManager#22
Closed
Bump Microsoft.Orleans.Persistence.Redis from 10.2.2 to 10.3.0 csrakowski/FeedManager#23
Merged
Bump Microsoft.Orleans.Runtime from 10.2.2 to 10.3.0 csrakowski/FeedManager#24
Merged
Bump Microsoft.Orleans.Sdk from 10.2.2 to 10.3.0 csrakowski/FeedManager#25
Merged
Bump Microsoft.Orleans.Persistence.Memory and Microsoft.Orleans.Server csrakowski/FeedManager#26
Merged
Bump the dotnet-dependencies group with 1 update dills122/sandtable#67
Merged
This was referenced Aug 31, 2026
chore: Bump Microsoft.Orleans.Persistence.Memory and 3 others managedcode/Communication#155
Closed
chore: Bump Microsoft.Orleans.TestingHost from 10.2.2 to 10.3.1 managedcode/Communication#156
Merged
Bump the orleans group with 1 update vgmello/momentum#341
Closed
Bump Microsoft.Orleans.BroadcastChannel and 5 others intochat/intochat#77
Closed
Bump the orleans group with 10 updates bartul/agave#86
Closed
Bump the orleans group with 3 updates microsoft/aspire-samples#1930
Closed
Bump the nuget-minor-patch group with 21 updates Systemorph/MeshWeaver#3519
Closed
chore(deps): Bump the nuget-patch-and-minor group with 13 updates petesramek/microservices-vs-virtual-actors#8
Closed
This was referenced Sep 7, 2026
Bump the orleans group with 3 updates microsoft/aspire-samples#1931
Merged
Bump the orleans group with 10 updates bartul/agave#87
Merged
Bump the dotnet group with 5 updates dotnet/docs#55908
Merged
Bump the dotnet group with 4 updates dotnet/docs#55909
Merged
Bump the dotnet group with 4 updates dotnet/docs#55910
Merged
Bump the dotnet group with 5 updates dotnet/docs#55911
Merged
Bump the dotnet group with 4 updates IvanMarkitan/dotnet-docs#838
Closed
Bump the dotnet group with 6 updates IvanMarkitan/dotnet-docs#839
Closed
Bump the dotnet group with 7 updates IvanMarkitan/dotnet-docs#840
Closed
Bump Microsoft.Orleans.Sdk and Microsoft.Orleans.Server IvanMarkitan/dotnet-docs#843
Open
Bump Microsoft.Orleans.Clustering.Redis and 4 others IvanMarkitan/dotnet-docs#845
Closed
Bump the dotnet group with 7 updates IvanMarkitan/dotnet-docs#846
Open
Bump the dotnet group with 5 updates BillWagner/docs#9804
Closed
Bump the dotnet group with 4 updates BillWagner/docs#9805
Closed
Bump the dotnet group with 4 updates BillWagner/docs#9806
Closed
Bump the dotnet group with 5 updates BillWagner/docs#9807
Closed
Bump the dotnet group with 7 updates zbalkan/docs#2339
Closed
Bump the dotnet group with 5 updates zbalkan/docs#2340
Closed
Bump the dotnet group with 6 updates zbalkan/docs#2341
Closed
Bump the dotnet group with 10 updates zbalkan/docs#2347
Open
@ReubenBond ReubenBond mentioned this pull request Sep 9, 2026
CleanupDefunctSiloEntries key insert is missing in sql files #8216
Closed
@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.

Reviewers

Copilot code review Copilot
Copilot review effort
Applies to this pull request for everyone.Learn more about Copilot code review.
Copilot left review comments
@ReubenBond ReubenBond ReubenBond approved these changes

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

7 participants

@tomaszstrejczek @NSTA2 @ReubenBond @Shumozavr @InCerryGit @crashkonijn
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.