Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-19660

viewcache is cleared/refreshed before content publish operation is finished

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Medium Medium
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: Customer request, 5.1
    • Component/s: Caching
    • Labels:
    • Environment:

      eZ Publish 4.5, eZ DFS

      Description

      On a busy site, publishing a content object can lead to the viewcache being cleared and regenerated, with the stale content, before the full publish operation is completed.

      Some Notes:

      • The whole publishing operation is wrapped in a DB transaction.
      • eZ DFS operations (cache clear) are immediate (separate transactions).
      Steps to reproduce

      Steps to reproduce, on eZ DFS:

      • use apache benchmark to request an article on the public site - for example:

        ab -c 2 -n 10000 http://localhost/public_site/link/to/article
        

      • while the "stress test" is running, go to the admin UI and update/publish the article.
      • stop the "stress test" and check the article on the public site

      Result:

      • The changes to the article won't be visible (instead, the previous version is cached).
      • Different siteaccesses my display the updated content correctly, if cache hasn't been generated yet.

        Issue Links

          Activity

          Hide
          Gaetano Giunta added a comment -

          Most likely this happens on a non-clustered installation as well, since cache-clearing is done via fs calls...

          Show
          Gaetano Giunta added a comment - Most likely this happens on a non-clustered installation as well, since cache-clearing is done via fs calls...
          Show
          Patrick Allaert (Inactive) added a comment - PR at: https://github.com/ezsystems/ezpublish/pull/505
          Show
          André Rømcke added a comment - PR pulled in https://github.com/ezsystems/ezpublish/commit/26b4c815ca222cdb0a85fdaf72451b424cec8050
          Show
          Patrick Allaert (Inactive) added a comment - - edited Fixed in: eZ Publish master (merge commit): https://github.com/ezsystems/ezpublish-legacy/commit/26b4c815ca222cdb0a85fdaf72451b424cec8050 eZ Publish master: https://github.com/ezsystems/ezpublish-legacy/commit/3f832e5d97dc62f7624c12e49941bfc4e816859a
          Show
          Jérôme Vieilledent (Inactive) added a comment - Regression : https://jira.ez.no/browse/EZP-20558
          Hide
          Jérôme Vieilledent (Inactive) added a comment -

          Another regression: EZP-20558

          Show
          Jérôme Vieilledent (Inactive) added a comment - Another regression: EZP-20558
          Hide
          Jérôme Vieilledent (Inactive) added a comment -

          EZP-21565 (the one above was bad copy/paste).

          Show
          Jérôme Vieilledent (Inactive) added a comment - EZP-21565 (the one above was bad copy/paste).
          Hide
          Jérôme Vieilledent (Inactive) added a comment -
          Show
          Jérôme Vieilledent (Inactive) added a comment - Patch to fix the regressions: https://github.com/ezsystems/ezpublish-legacy/pull/767

            People

            • Assignee:
              Unassigned
              Reporter:
              João Inácio
            • Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 7 hours, 15 minutes
                7h 15m