Skip to content

Commit 6c09b7b

Browse files
authored
Up retry for ETXTBSY (#60741)
* Up retry for ETXTBSY Still seeing occasional failure in Alpine (https://dev.azure.com/dnceng/public/_build/results?buildId=1434759) so raising the retry time. * Linearly scale wait time
1 parent d2ca8e1 commit 6c09b7b

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/installer/tests/TestUtils/Command.cs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -206,11 +206,9 @@ public Command Start()
206206
Process.Start();
207207
break;
208208
}
209-
catch (Win32Exception e) when (i < 3 && e.Message.Contains("Text file busy"))
209+
catch (Win32Exception e) when (i < 4 && e.Message.Contains("Text file busy"))
210210
{
211-
// 10 ms is short, but the race we're trying to avoid is in-between
212-
// "fork" and "exec", so it should be fast
213-
Thread.Sleep(10);
211+
Thread.Sleep(i * 20);
214212
}
215213
}
216214

0 commit comments

Comments
 (0)