Skip to content

Commit

Permalink
JDK-8257539: tools/jpackage/windows/WinL10nTest.java unpack.bat faile…
Browse files Browse the repository at this point in the history
…d with Exit code: 1618
  • Loading branch information
andyherrick committed Dec 9, 2020
1 parent 5f03341 commit a546f9f
Showing 1 changed file with 3 additions and 2 deletions.
Expand Up @@ -63,7 +63,7 @@ private static Path getInstallationSubDirectory(JPackageCommand cmd) {

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
Expand All @@ -72,7 +72,8 @@ private static void runMsiexecWithRetries(Executor misexec) {
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;
Expand Down

0 comments on commit a546f9f

Please sign in to comment.