8257539: tools/jpackage/windows/WinL10nTest.java unpack.bat failed with Exit code: 1618
Reviewed-by: almatvee, asemenyuk, prr, kizune
This commit is contained in:
parent
53e537c738
commit
1ce2a36c7b
@ -63,7 +63,7 @@ public class WindowsHelper {
|
||||
|
||||
private static void runMsiexecWithRetries(Executor misexec) {
|
||||
Executor.Result result = null;
|
||||
for (int attempt = 0; attempt != 3; ++attempt) {
|
||||
for (int attempt = 0; attempt < 8; ++attempt) {
|
||||
result = misexec.executeWithoutExitCodeCheck();
|
||||
|
||||
// The given Executor may either be of an msiexe command or an
|
||||
@ -72,7 +72,8 @@ public class WindowsHelper {
|
||||
if ((result.exitCode == 1618) || (result.exitCode == 1603)) {
|
||||
// Another installation is already in progress.
|
||||
// Wait a little and try again.
|
||||
ThrowingRunnable.toRunnable(() -> Thread.sleep(3000)).run();
|
||||
Long timeout = 1000L * (attempt + 3); // from 3 to 10 seconds
|
||||
ThrowingRunnable.toRunnable(() -> Thread.sleep(timeout)).run();
|
||||
continue;
|
||||
}
|
||||
break;
|
||||
|
Loading…
x
Reference in New Issue
Block a user