JDK-8222532 : (zipfs) Performance regression when writing ZipFileSystem entries in parallel
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.nio
  • Affected Version: 11.0.3,12,13
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2019-04-16
  • Updated: 2020-09-17
  • Resolved: 2019-04-24
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 11 JDK 12 JDK 13
11.0.4Fixed 12.0.2Fixed 13 b18Fixed
Related Reports
Duplicate :  
Relates :  
Relates :  
Relates :  
Description
Reported by Lennart B��rjeson here: http://mail.openjdk.java.net/pipermail/core-libs-dev/2019-April/059734.html

Narrowed down the cause as JDK-8034802 due changing deflation to only happen when syncing the ZipFileSystem whereas it previously happened eagerly when closing output streams retrieved via Files.newOutputStream: http://mail.openjdk.java.net/pipermail/core-libs-dev/2019-April/059753.html

Proof-of-concept patch that recuperates the parallelism in the default case: http://cr.openjdk.java.net/~redestad/scratch/zfs.eager_deflation.00/
Comments
Fix Request This resolves the performance/memory regression caused by JDK-8034802 (that is already backported in JDK 11.0.3). Patch applies cleanly to 11u. The jdk/nio/zipfs tests pass with the backport.
07-05-2019