[wp-trac] [WordPress Trac] #42196: WP_Upgrader->unpack_package can't run in parallel

WordPress Trac noreply at wordpress.org
Thu Oct 12 10:46:02 UTC 2017


#42196: WP_Upgrader->unpack_package can't run in parallel
--------------------------+-----------------------------
 Reporter:  sheldonh      |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 Although `WP_Upgrader->unpack_package` takes care to assign a unique
 `$working_dir` for the package being unpacked, it recursively deletes the
 contents of `$upgrade_folder` before it does its work.

 Since `$upgrade_folder` is the parent of `$working_dir`, concurrent
 `unpack_package` calls interfere with each other. In particular, this
 defeats parallel `wp theme install`; one install is likely to encounter
 `ENOENT` while trying to copy it unpacked files out of `$working_dir`.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/42196>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list