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)

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Medium Medium
    • 4.3.0, 4.4.0, 4.5.0, 4.6.0, 4.7.0
    • None

    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

      Attachments

        Activity

          People

            Unassigned Unassigned
            rba_ic rba_ic
            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