core icon indicating copy to clipboard operation
core copied to clipboard

Failed bundle wipes index entry of modified content

Open wezell opened this issue 9 years ago • 4 comments

If you import a bundle and some of the content objects fail, this throws a bundler exception which is good. The problem arises when content is been successfully imported and then something a subsequent handler is doing fails. This rolls back all the commit listeners and the content index gets out of whack.

https://github.com/dotCMS/core/blob/master/dotCMS/src/main/java/com/dotcms/publisher/receiver/BundlePublisher.java#L201-L209

wezell avatar May 25 '17 17:05 wezell

ea4fa05f-67f2-434f-8a86-a0a8c9519bb9.tar.gz

Try to import this bundle first and then checkout the hosts list

wezell avatar May 25 '17 18:05 wezell

screen shot 2017-05-25 at 2 12 52 pm

wezell avatar May 25 '17 18:05 wezell

PR Core: https://github.com/dotCMS/core/pull/11991

nollymar avatar Jun 26 '17 16:06 nollymar

Passed QA. Successfully uploaded different bundles, including bundle provided by Will in this issue. Bundler exception is still thrown when some of the content objects fail, which is good. Hosts are not missing from the Content Search, as they were before the fix image Created/deleted different hosts and changes are being shown appropriately

Tested locally using the following environments: Fresh starter and also using upgrade from dotcms_3.6 with client dataset (db and assets) to master branch / commit 46d9818107ca6938e4b0fa30364d707ac1ddb423 Ubuntu 14.04.1 / Postgres 9.3.7 / Chrome v54.0.2840.98 / Tomcat 8 / Java 8

shaydotcms avatar Jun 29 '17 16:06 shaydotcms