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

[eZFind 2.2-0][eZ 4.3] Multicore: Fatal Error on direct calls to eZSolr::commit() (cronjob ezfindexcontent)

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Medium Medium
    • Resolution: Fixed
    • Affects Version/s: 4.3.0, 4.4.0, 4.5.0, 4.6.0, 4.7.0
    • Labels:
      None
    • Environment:

      Description

      Cronjob ezfindexcontent fails in multicore mode because of a typo in eZSolr::commit()
      => Instead of accessing the eZSolrBase instances with "$this->SolrLanguageShards[<language>]", it uses "$this->SolrLanguageShards[<language>]->Solr", which is not defined.
      => the function eZSolr::optimize has the correct syntax.

      Xdebug output below :
      ---------
      Notice: Undefined property: eZSolrBase::$Solr in /var/www/myproject/www/extension/ezfind/search/plugins/ezsolr/ezsolr.php on line 590

      Call Stack:
      0.0321 135672 1.

      {main}() /var/www/myproject/www/runcronjobs.php:0
      0.2361 5174132 2. eZRunCronjobs::runScript(???, ???) /var/www/myproject/www/runcronjobs.php:356
      0.2401 5279420 3. include('/var/www/myproject/www/extension/ezfind/cronjobs/ezfindexcontent.php') /var/www/myproject/www/kernel/classes/ezruncronjobs.php:76
      8.3411 23279996 4. eZSolr->commit() /var/www/myproject/www/extension/ezfind/cronjobs/ezfindexcontent.php:80


      Fatal error: Call to a member function commit() on a non-object in /var/www/myproject/www/extension/ezfind/search/plugins/ezsolr/ezsolr.php on line 590

      Call Stack:
      0.0321 135672 1. {main}

      () /var/www/myproject/www/runcronjobs.php:0
      0.2361 5174132 2. eZRunCronjobs::runScript(???, ???) /var/www/myproject/www/runcronjobs.php:356
      0.2401 5279420 3. include('/var/www/myproject/www/extension/ezfind/cronjobs/ezfindexcontent.php') /var/www/myproject/www/kernel/classes/ezruncronjobs.php:76
      8.3411 23279996 4. eZSolr->commit() /var/www/myproject/www/extension/ezfind/cronjobs/ezfindexcontent.php:80

      Fatal error: eZ Publish did not finish its request
      The execution of eZ Publish was abruptly ended, the debug output is present below.
      ---------

      Patch included below

      Steps to reproduce

      a) Set up multicore environment
      b) Have some objects to index with cronjob ezfindexcontent (activate DelayedIndexing for instance), then run the cronjob ezfindexcontent

        Issue Links

          Activity

          Richard Bayet created issue -
          André Rømcke made changes -
          Field Original Value New Value
          Workflow eZ Community Workflow [ 32360 ] eZ Engineering Scrumban Workflow [ 47644 ]
          Yannick Roger (Inactive) made changes -
          Resolution Obsolete [ 8 ]
          Status Closed [ 6 ] Reopened [ 4 ]
          Assignee unknown [ unknown ] Yannick Roger [ yannick.roger@ez.no ]
          Yannick Roger (Inactive) made changes -
          Status Reopened [ 4 ] Confirmed [ 10037 ]
          Yannick Roger (Inactive) made changes -
          Link This issue is duplicated by EZP-21496 [ EZP-21496 ]
          Yannick Roger (Inactive) made changes -
          Affects Version/s 4.7.0 [ 11010 ]
          Affects Version/s 4.6.0 [ 11005 ]
          Affects Version/s 4.5.0 [ 11000 ]
          Affects Version/s 4.4.0 [ 10990 ]
          André Rømcke made changes -
          Fix Version/s Customer request [ 11018 ]
          André Rømcke made changes -
          Status Confirmed [ 10037 ] InputQ [ 10001 ]
          Yannick Roger (Inactive) made changes -
          Status InputQ [ 10001 ] Development [ 3 ]
          Yannick Roger (Inactive) made changes -
          Remaining Estimate 0 minutes [ 0 ]
          Time Spent 2 hours [ 7200 ]
          Worklog Id 38759 [ 38759 ]
          Yannick Roger (Inactive) made changes -
          Status Development [ 3 ] Documentation done [ 10011 ]
          Fix Version/s 4.7 Maintenance [ 12583 ]
          Joao Pingo (Inactive) made changes -
          Status Documentation done [ 10011 ] QA [ 10008 ]
          Assignee Yannick Roger [ yannick.roger@ez.no ] Joao Pingo [ joao.pingo@ez.no ]
          Joao Pingo (Inactive) made changes -
          Time Spent 2 hours [ 7200 ] 4 hours [ 14400 ]
          Worklog Id 39031 [ 39031 ]
          Joao Pingo (Inactive) made changes -
          Assignee Joao Pingo [ joao.pingo@ez.no ]
          Status QA [ 10008 ] Closed [ 6 ]
          Resolution Fixed [ 1 ]
          Joao Pingo (Inactive) made changes -
          Resolution Fixed [ 1 ]
          Status Closed [ 6 ] Reopened [ 4 ]
          Joao Pingo (Inactive) made changes -
          Time Spent 4 hours [ 14400 ] 1 day, 1 hour [ 32400 ]
          Worklog Id 39207 [ 39207 ]
          Joao Pingo (Inactive) made changes -
          Status Reopened [ 4 ] Closed [ 6 ]
          Resolution Fixed [ 1 ]
          Bertrand Dunogier made changes -
          Component/s Extensions/eZ Find/Indexing [ 10766 ]
          André Rømcke made changes -
          Workflow eZ Engineering Scrumban Workflow [ 47644 ] EZ* Development Workflow [ 82095 ]
          Alex Schuster made changes -
          Workflow EZ* Development Workflow [ 82095 ] EZEE Development Workflow [ 120675 ]

            People

            • Assignee:
              Unassigned
              Reporter:
              Richard Bayet
            • Votes:
              0 Vote for this issue
              Watchers:
              2 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 - 1 day, 1 hour
                1d 1h