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

Add missing query CleanupDefunctSiloEntriesKey to PostgreSQL-Clustering #9125

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions src/AdoNet/Orleans.Clustering.AdoNet/PostgreSQL-Clustering.sql
Original file line number Diff line number Diff line change
Expand Up @@ -344,3 +344,14 @@ VALUES
AND Status = @Status AND @Status IS NOT NULL
AND ProxyPort > 0;
');

INSERT INTO OrleansQuery(QueryKey, QueryText)
VALUES
(
'CleanupDefunctSiloEntriesKey',
'DELETE FROM OrleansMembershipTable
WHERE DeploymentId = @DeploymentId
AND @DeploymentId IS NOT NULL
AND IAmAliveTime < @IAmAliveTime
AND Status != 3;
');
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,7 @@ public virtual string StreamTestInsert
$"{this.ProviderMoniker}-Persistence.sql",
$"{this.ProviderMoniker}-Reminders.sql",
$"{this.ProviderMoniker}-Streaming.sql",
}.Concat(Directory.GetFiles(Environment.CurrentDirectory, $"{this.ProviderMoniker}-Clustering-*.sql")
.Concat(Directory.GetFiles(Environment.CurrentDirectory, $"{this.ProviderMoniker}-Persistence-*.sql"))
.Concat(Directory.GetFiles(Environment.CurrentDirectory, $"{this.ProviderMoniker}-Reminders-*.sql"))
.Concat(Directory.GetFiles(Environment.CurrentDirectory, $"{this.ProviderMoniker}-Streaming-*.sql"))
.Select(f => Path.GetFileName(f))
.OrderBy(f => f)).ToArray();
};

/// <summary>
/// A query template to create a database with a given name.
Expand Down