Uploaded image for project: 'Ibexa IBX'
  1. Ibexa IBX
  2. IBX-6483

Test fail when a Content Item is removed during parallel execution

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: Medium Medium
    • None
    • 4.6.0-beta1, 4.5.2, 3.3.35
    • QA

    Description

      This is an issue in Behat tests.

       

      Running them in parallel (in two threads) can lead to a situation where:

      1) one thread is in the middle of loading a Content Item

      2) another thread is at the same time deleting the same Content item permamently

       

      Example exception:

      request.CRITICAL: Uncaught PHP Exception Twig\Error\RuntimeError: "An exception has been thrown during the rendering of a template ("Could not find 'location' with identifier '136'")." at /var/www/vendor/ibexa/admin-ui/src/bundle/Resources/views/themes/admin/ui/dashboard/block/me.html.twig line 6 {"exception":"[object] (Twig\\Error\\RuntimeError(code: 0): An exception has been thrown during the rendering of a template (\"Could not find 'location' with identifier '136'\"). at /var/www/vendor/ibexa/admin-ui/src/bundle/Resources/views/themes/admin/ui/dashboard/block/me.html.twig:6)\n[previous exception] [object] (Ibexa\\Core\\Base\\Exceptions\\NotFoundException(code: 404): Could not find 'location' with identifier '136' at /var/www/vendor/ibexa/core/src/lib/Persistence/Legacy/Content/Location/Gateway/DoctrineDatabase.php:83)"} [] 

       

      When it happens there should a mention of sending Item to Trash in the log:

      Starting Step "I send "TrashTest/RestoreFromTrash" to the Trash" 
      
      request.CRITICAL: Uncaught PHP Exception Twig\Error\RuntimeError: "An exception has been thrown during the rendering of a template ("Could not find 'location' with identifier '136'")." at /var/www/vendor/ibexa/admin-ui/src/bundle/Resources/views/themes/admin/ui/dashboard/block/me.html.twig line 6 {"exception":"[object] (Twig\\Error\\RuntimeError(code: 0): An exception has been thrown during the rendering of a template (\"Could not find 'location' with identifier '136'\"). at /var/www/vendor/ibexa/admin-ui/src/bundle/Resources/views/themes/admin/ui/dashboard/block/me.html.twig:6)\n[previous exception] [object] (Ibexa\\Core\\Base\\Exceptions\\NotFoundException(code: 404): Could not find 'location' with identifier '136' at /var/www/vendor/ibexa/core/src/lib/Persistence/Legacy/Content/Location/Gateway/DoctrineDatabase.php:83)"} []
      
      Ending Step "I send "TrashTest/RestoreFromTrash" to the Trash" 
      Starting Step "I open "Trash" page in admin SiteAccess" 
      Ending Step "I open "Trash" page in admin SiteAccess" 
      Starting Step "there is a "Folder" "RestoreFromTrash" on Trash list" 
      Ending Step "I open the "Dashboard" page in admin SiteAccess" 

      Designs

        Attachments

          Activity

            People

              Unassigned Unassigned
              marek.nocon@ibexa.co Marek Nocoń
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: