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

          Hide
          Richard Bayet added a comment -

          ezfind2-2.0_ez43_fatal_error_on_eZSolr_commit.patch Patch on extension/ezfind/search/plugins/ezsolr/ezsolr.php, eZ 4.3.0

          Show
          Richard Bayet added a comment - ezfind2-2.0_ez43_fatal_error_on_eZSolr_commit.patch Patch on extension/ezfind/search/plugins/ezsolr/ezsolr.php, eZ 4.3.0
          Richard Bayet created issue -
          Hide
          ezrobot added a comment -

          This issue has been automatically closed due to the lack of activity over a long period of time. It is very likely that it is obsolete, but if you think it is still valid, do not hesitate to reopen it and mention why.

          Show
          ezrobot added a comment - This issue has been automatically closed due to the lack of activity over a long period of time. It is very likely that it is obsolete, but if you think it is still valid, do not hesitate to reopen it and mention why.
          André Rømcke made changes -
          Field Original Value New Value
          Workflow eZ Community Workflow [ 32360 ] eZ Engineering Scrumban Workflow [ 47644 ]
          Hide
          Yannick Roger (Inactive) added a comment -

          Reopening because the patch has been merged.

          Show
          Yannick Roger (Inactive) added a comment - Reopening because the patch has been merged.
          Yannick Roger (Inactive) made changes -
          Resolution Obsolete [ 8 ]
          Status Closed [ 6 ] Reopened [ 4 ]
          Assignee unknown [ unknown ] Yannick Roger [ yannick.roger@ez.no ]
          Show
          Yannick Roger (Inactive) added a comment - - edited Fixed in master since 5.0 : https://github.com/ezsystems/ezfind/commit/5af2a68f75a0ec703d4039dfadef8e0784ec10c9
          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) logged work - 05/Sep/13 6:26 PM
          • Time Spent:
            2 hours
             
            <No comment>
          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) logged work - 09/Sep/13 7:05 PM
          • Time Spent:
            2 hours
             

            Testing

          Hide
          Joao Pingo (Inactive) added a comment -

          Tested using tc-1802 on 4.7 and 5.0
          QA Approved

          Show
          Joao Pingo (Inactive) added a comment - Tested using tc-1802 on 4.7 and 5.0 QA Approved
          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 ]
          Joao Pingo (Inactive) logged work - 10/Sep/13 5:17 PM
          • Time Spent:
            5 hours
             

            Tested and closed

          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 ]
          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