Skip to content

Commit ad13f56

Browse files
authored
feat(polly): retry db drop wait longer (#95)
1 parent 48bb272 commit ad13f56

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/SmoFacade/Database.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,10 +134,9 @@ private void ThrowIfUnreadyToDrop()
134134
// Deleting the database while it is initializing will leave it in a state where system redo threads are stuck.
135135
// This leaves the database in a state that a SQL Server service restart prior to deletion.
136136

137-
138137
var policyPrep = Policy
139138
.Handle<Exception>()
140-
.WaitAndRetry(3, retryAttempt => TimeSpan.FromMilliseconds(Math.Pow(10, retryAttempt)));
139+
.WaitAndRetry(6, retryAttempt => TimeSpan.FromMilliseconds(Math.Pow(5, retryAttempt)));
141140

142141
// ensure database is not in AvailabilityGroup, WaitAndRetry loop for each instance to sync
143142
policyPrep.Execute(() => {

0 commit comments

Comments
 (0)