JDK-8233855 : [TESTBUG] appcds/FieldLayoutFlags.java failed to clean up files after test
  • Type: Bug
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: 14
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2019-11-08
  • Updated: 2019-11-14
  • Resolved: 2019-11-08
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 14
14 b23Fixed
Related Reports
Relates :  
Description
When running in hs-tier4, with the following task:

test open/test/hotspot/jtreg:hotspot_appcds_dynamic with windows-x64-debug with -Dtest.dynamic.cds.archive=true #tier4-rt-appcds-dynamic

FieldLayoutFlags.java fails with failed to clean up files after test.

It's probably caused by failing to close the zipfile here:
http://hg.openjdk.java.net/jdk/jdk/file/ad157fab6bf5/test/hotspot/jtreg/runtime/cds/appcds/TestCommon.java#l346
Comments
URL: https://hg.openjdk.java.net/jdk/jdk/rev/7f1d2c3a99da User: iklam Date: 2019-11-08 19:04:52 +0000
08-11-2019

I am testing with this fix now: $ hg diff diff -r ad157fab6bf5 test/hotspot/jtreg/runtime/cds/appcds/TestCommon.java --- a/test/hotspot/jtreg/runtime/cds/appcds/TestCommon.java Thu Nov 07 16:26:57 2019 -0800 +++ b/test/hotspot/jtreg/runtime/cds/appcds/TestCommon.java Fri Nov 08 09:45:26 2019 -0800 @@ -343,6 +343,7 @@ newFile.renameTo(oldFile); System.out.println("firstJar = " + firstJar + " Modified"); } else { + zipFile.close(); System.out.println("firstJar = " + firstJar); } }
08-11-2019