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

Solr returns wrong results after object language deletion

    Details

      Description

      Steps to reproduce:

      On a clean, fully patched installation of eZ Publish 4.7 + eZ Find 2.7:

      1. Started Solr service;
      2. Created an article in language A;
      3. Searched for article in Solr admin interface, got 1 result;
      4. Created article translation in language B;
      5. Searched for article in Solr admin interface, got 2 results, 1 for language A and 1 for language B;
      6. Deleted article translation for language B;
      7. Searched for article in Solr admin interface, still got 2 results, which is wrong;

        Issue Links

          Activity

          Show
          Yannick Roger (Inactive) added a comment - PR: https://github.com/ezsystems/ezfind/pull/170
          Show
          Yannick Roger (Inactive) added a comment - - edited Fixed in master: https://github.com/ezsystems/ezfind/commit/40db8584db09783c4d27c555455f942f78f99ac7 https://github.com/ezsystems/ezfind/commit/722313b9e7b6f1eb6f69eda868bfaa9df3147f71 multicore fix: https://github.com/ezsystems/ezfind/commit/262f10e2bfac2d868cbfdeadb5cda1ac3f081ac4
          Hide
          Paulo Nunes (Inactive) added a comment - - edited

          @[~yannick.roger@ez.no]
          Having multicore enabled, when i try to publish or re-index some object, i have the following error

          (from a 4.7 installation with eZ find 2.7 - All service packs installed and running a multicore installation with english+French)

          Creating a new thread: 12056
          Process finished: 12051
          PHP Fatal error:  Call to a member function rawSearch() on a non-object in /var/www/html/ezp47/.run/extension/ezfind/search/plugins/ezsolr/ezsolr.php on line 1369
          PHP Stack trace:
          PHP   1. {main}() /var/www/html/ezp47/.run/extension/ezfind/bin/php/updatesearchindexsolr.php:0
          PHP   2. ezfUpdateSearchIndexSolr->run() /var/www/html/ezp47/.run/extension/ezfind/bin/php/updatesearchindexsolr.php:62
          PHP   3. ezfUpdateSearchIndexSolr->runSubProcess() /var/www/html/ezp47/.run/extension/ezfind/bin/php/updatesearchindexsolr.php:163
          PHP   4. eZSolr->addObject() /var/www/html/ezp47/.run/extension/ezfind/bin/php/updatesearchindexsolr.php:213
          PHP   5. eZSolr->getLanguagesForObject() /var/www/html/ezp47/.run/extension/ezfind/search/plugins/ezsolr/ezsolr.php:503
          

          Edit:
          Same error on Master

          Fatal error: Call to a member function rawSearch() on a non-object in /var/www/ezpublish5/ezpublish_legacy/extension/ezfind/search/plugins/ezsolr/ezsolr.php on line 1210
           
          Call Stack:
              0.0016     329664   1. {main}() /var/www/ezpublish5/ezpublish_legacy/extension/ezfind/bin/php/updatesearchindexsolr.php:0
              0.0126    1286824   2. ezfUpdateSearchIndexSolr->run() /var/www/ezpublish5/ezpublish_legacy/extension/ezfind/bin/php/updatesearchindexsolr.php:43
              0.1884    4946032   3. ezfUpdateSearchIndexSolr->runMain() /var/www/ezpublish5/ezpublish_legacy/extension/ezfind/bin/php/updatesearchindexsolr.php:148
              0.6529    7063600   4. ezfUpdateSearchIndexSolr->forkAndExecute() /var/www/ezpublish5/ezpublish_legacy/extension/ezfind/bin/php/updatesearchindexsolr.php:249
              0.6561    7054464   5. ezfUpdateSearchIndexSolr->execute() /var/www/ezpublish5/ezpublish_legacy/extension/ezfind/bin/php/updatesearchindexsolr.php:380
              0.6719    8952192   6. eZSolr->addObject() /var/www/ezpublish5/ezpublish_legacy/extension/ezfind/bin/php/updatesearchindexsolr.php:432
              0.6849    9942608   7. eZSolr->getLanguagesForObject() /var/www/ezpublish5/ezpublish_legacy/extension/ezfind/search/plugins/ezsolr/ezsolr.php:525
          

          Show
          Paulo Nunes (Inactive) added a comment - - edited @ [~yannick.roger@ez.no] Having multicore enabled, when i try to publish or re-index some object, i have the following error (from a 4.7 installation with eZ find 2.7 - All service packs installed and running a multicore installation with english+French) Creating a new thread: 12056 Process finished: 12051 PHP Fatal error: Call to a member function rawSearch() on a non-object in /var/www/html/ezp47/.run/extension/ezfind/search/plugins/ezsolr/ezsolr.php on line 1369 PHP Stack trace: PHP 1. {main}() /var/www/html/ezp47/.run/extension/ezfind/bin/php/updatesearchindexsolr.php:0 PHP 2. ezfUpdateSearchIndexSolr->run() /var/www/html/ezp47/.run/extension/ezfind/bin/php/updatesearchindexsolr.php:62 PHP 3. ezfUpdateSearchIndexSolr->runSubProcess() /var/www/html/ezp47/.run/extension/ezfind/bin/php/updatesearchindexsolr.php:163 PHP 4. eZSolr->addObject() /var/www/html/ezp47/.run/extension/ezfind/bin/php/updatesearchindexsolr.php:213 PHP 5. eZSolr->getLanguagesForObject() /var/www/html/ezp47/.run/extension/ezfind/search/plugins/ezsolr/ezsolr.php:503 Edit: Same error on Master Fatal error: Call to a member function rawSearch() on a non-object in /var/www/ezpublish5/ezpublish_legacy/extension/ezfind/search/plugins/ezsolr/ezsolr.php on line 1210   Call Stack: 0.0016 329664 1. {main}() /var/www/ezpublish5/ezpublish_legacy/extension/ezfind/bin/php/updatesearchindexsolr.php:0 0.0126 1286824 2. ezfUpdateSearchIndexSolr->run() /var/www/ezpublish5/ezpublish_legacy/extension/ezfind/bin/php/updatesearchindexsolr.php:43 0.1884 4946032 3. ezfUpdateSearchIndexSolr->runMain() /var/www/ezpublish5/ezpublish_legacy/extension/ezfind/bin/php/updatesearchindexsolr.php:148 0.6529 7063600 4. ezfUpdateSearchIndexSolr->forkAndExecute() /var/www/ezpublish5/ezpublish_legacy/extension/ezfind/bin/php/updatesearchindexsolr.php:249 0.6561 7054464 5. ezfUpdateSearchIndexSolr->execute() /var/www/ezpublish5/ezpublish_legacy/extension/ezfind/bin/php/updatesearchindexsolr.php:380 0.6719 8952192 6. eZSolr->addObject() /var/www/ezpublish5/ezpublish_legacy/extension/ezfind/bin/php/updatesearchindexsolr.php:432 0.6849 9942608 7. eZSolr->getLanguagesForObject() /var/www/ezpublish5/ezpublish_legacy/extension/ezfind/search/plugins/ezsolr/ezsolr.php:525
          Hide
          Yannick Roger (Inactive) added a comment -
          Show
          Yannick Roger (Inactive) added a comment - PR fixing multicore: https://github.com/ezsystems/ezfind/pull/173
          Hide
          Yannick Roger (Inactive) added a comment -

          Multicore fixes have been added to other commits in my previous comment.

          Show
          Yannick Roger (Inactive) added a comment - Multicore fixes have been added to other commits in my previous comment.
          Hide
          Paulo Nunes (Inactive) added a comment -

          QA Approved

          Tested on eZ Publish 4.7, 5.0, 5.1, 5.2, .5.3 and master
          Tested using ezfind multicore setup

          Show
          Paulo Nunes (Inactive) added a comment - QA Approved Tested on eZ Publish 4.7, 5.0, 5.1, 5.2, .5.3 and master Tested using ezfind multicore setup

            People

            • Assignee:
              Unassigned
              Reporter:
              Nuno Oliveira (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              5 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 hour
                1h