[jdk17] RFR: 8269036: tools/jpackage/share/AppImagePackageTest.java failed with "hdiutil: create failed - Resource busy"

Alexander Matveev almatvee at openjdk.java.net
Tue Jun 22 22:05:42 UTC 2021


Looks like another "Resource busy" issue similar to recent fixes for "hdiutil convert" and "hdiutil detach". Workaround in same way by repeating "create" command. Modified RetryExecutor to pass write to file flag, otherwise "hdiutil create" might deadlock.
Also, repeat is done only for creating DMG using size instead of creating from app image. In some cases create DMG from app image might run for very long time and eventually fail, this is why fallback to create DMG from size was added.

-------------

Commit messages:
 - 8269036: tools/jpackage/share/AppImagePackageTest.java failed with "hdiutil: create failed - Resource busy"

Changes: https://git.openjdk.java.net/jdk17/pull/122/files
 Webrev: https://webrevs.openjdk.java.net/?repo=jdk17&pr=122&range=00
  Issue: https://bugs.openjdk.java.net/browse/JDK-8269036
  Stats: 16 lines in 2 files changed: 13 ins; 0 del; 3 mod
  Patch: https://git.openjdk.java.net/jdk17/pull/122.diff
  Fetch: git fetch https://git.openjdk.java.net/jdk17 pull/122/head:pull/122

PR: https://git.openjdk.java.net/jdk17/pull/122


More information about the core-libs-dev mailing list