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

          Transition Time In Source Status Execution Times Last Executer Last Execution Date
          Reopened Reopened Confirmed Confirmed
          31s 1 yannick.roger@ez.no 05/Sep/13 5:50 PM
          Confirmed Confirmed InputQ InputQ
          33m 47s 1 André Rømcke 05/Sep/13 6:24 PM
          InputQ InputQ Development Development
          39s 1 yannick.roger@ez.no 05/Sep/13 6:25 PM
          Development Development Documentation Review done Documentation Review done
          2m 2s 1 yannick.roger@ez.no 05/Sep/13 6:27 PM
          Documentation Review done Documentation Review done QA QA
          3d 17h 40m 1 Joao Pingo (Inactive) 09/Sep/13 12:07 PM
          QA QA Closed Closed
          1d 4h 9m 1 Joao Pingo (Inactive) 10/Sep/13 4:17 PM
          Closed Closed Reopened Reopened
          1007d 23h 41m 2 Joao Pingo (Inactive) 10/Sep/13 4:17 PM
          Reopened Reopened Closed Closed
          0s 1 Joao Pingo (Inactive) 10/Sep/13 4:17 PM

            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