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

          Nuno Oliveira (Inactive) created issue -
          Nuno Oliveira (Inactive) made changes -
          Field Original Value New Value
          Status Open [ 1 ] Confirmed [ 10037 ]
          Gunnstein Lye made changes -
          Status Confirmed [ 10037 ] InputQ [ 10001 ]
          Yannick Roger (Inactive) made changes -
          Status InputQ [ 10001 ] Development [ 3 ]
          Assignee Yannick Roger [ yannick.roger@ez.no ]
          Yannick Roger (Inactive) made changes -
          Affects Version/s 5.3.2 [ 13483 ]
          Affects Version/s 2014.07 [ 13481 ]
          Affects Version/s 5.2 [ 12582 ]
          Affects Version/s 5.1 [ 11280 ]
          Affects Version/s 5.0 [ 10300 ]
          Affects Version/s 5.4-dev [ 13485 ]
          Show
          Yannick Roger (Inactive) added a comment - PR: https://github.com/ezsystems/ezfind/pull/170
          Yannick Roger (Inactive) made changes -
          Remote Link This issue links to "PR (Web Link)" [ 14300 ]
          Yannick Roger (Inactive) made changes -
          Status Development [ 3 ] Development review [ 10006 ]
          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
          Yannick Roger (Inactive) made changes -
          Status Development review [ 10006 ] Development Review done [ 10028 ]
          Fix Version/s 4.7 Maintenance [ 12583 ]
          Fix Version/s 5.0 Maintenance [ 11287 ]
          Fix Version/s 5.1 Maintenance [ 12301 ]
          Fix Version/s 5.2 Maintenance [ 12782 ]
          Fix Version/s 5.4 [ 13180 ]
          Fix Version/s 5.3.3 [ 13484 ]
          Fix Version/s 2014.09 [ 13681 ]
          Yannick Roger (Inactive) made changes -
          Status Development Review done [ 10028 ] Documentation done [ 10011 ]
          Paulo Nunes (Inactive) made changes -
          Status Documentation done [ 10011 ] QA [ 10008 ]
          Assignee Yannick Roger [ yannick.roger@ez.no ] Paulo Nunes [ paulo.nunes@ez.no ]
          Paulo Nunes (Inactive) made changes -
          Rank Ranked lower
          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
          Paulo Nunes (Inactive) made changes -
          Status QA [ 10008 ] InputQ [ 10001 ]
          Assignee Paulo Nunes [ paulo.nunes@ez.no ]
          Yannick Roger (Inactive) made changes -
          Assignee Yannick Roger [ yannick.roger@ez.no ]
          Yannick Roger (Inactive) made changes -
          Status InputQ [ 10001 ] Development [ 3 ]
          Hide
          Yannick Roger (Inactive) added a comment -
          Show
          Yannick Roger (Inactive) added a comment - PR fixing multicore: https://github.com/ezsystems/ezfind/pull/173
          Yannick Roger (Inactive) made changes -
          Remote Link This issue links to "PR2 : fixing multicore (Web Link)" [ 14317 ]
          Yannick Roger (Inactive) made changes -
          Status Development [ 3 ] Development review [ 10006 ]
          Paul Borgermans (Inactive) logged work - 22/Sep/14 11:43 PM
          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.
          Yannick Roger (Inactive) made changes -
          Status Development review [ 10006 ] Development Review done [ 10028 ]
          Yannick Roger (Inactive) made changes -
          Status Development Review done [ 10028 ] Documentation done [ 10011 ]
          Paulo Nunes (Inactive) made changes -
          Status Documentation done [ 10011 ] QA [ 10008 ]
          Assignee Yannick Roger [ yannick.roger@ez.no ] Paulo Nunes [ paulo.nunes@ez.no ]
          Paulo Nunes (Inactive) made changes -
          Rank Ranked higher
          Paulo Nunes (Inactive) made changes -
          Flagged Impediment [ 10000 ]
          Paulo Nunes (Inactive) made changes -
          Flagged Impediment [ 10000 ]
          Paulo Nunes (Inactive) made changes -
          Status QA [ 10008 ] InputQ [ 10001 ]
          Assignee Paulo Nunes [ paulo.nunes@ez.no ]
          Yannick Roger (Inactive) made changes -
          Status InputQ [ 10001 ] Development [ 3 ]
          Assignee Yannick Roger [ yannick.roger@ez.no ]
          Yannick Roger (Inactive) made changes -
          Remote Link This issue links to "PR3: 5.2 fix (Web Link)" [ 14401 ]
          Yannick Roger (Inactive) made changes -
          Status Development [ 3 ] Development review [ 10006 ]
          Yannick Roger (Inactive) made changes -
          Status Development review [ 10006 ] Development Review done [ 10028 ]
          Yannick Roger (Inactive) made changes -
          Status Development Review done [ 10028 ] Documentation done [ 10011 ]
          Paulo Nunes (Inactive) made changes -
          Status Documentation done [ 10011 ] QA [ 10008 ]
          Assignee Yannick Roger [ yannick.roger@ez.no ] Paulo Nunes [ paulo.nunes@ez.no ]
          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
          Paulo Nunes (Inactive) made changes -
          Assignee Paulo Nunes [ paulo.nunes@ez.no ]
          Status QA [ 10008 ] Closed [ 6 ]
          Resolution Fixed [ 1 ]
          Paul Borgermans (Inactive) made changes -
          Resolution Fixed [ 1 ]
          Status Closed [ 6 ] Reopened [ 4 ]
          Paul Borgermans (Inactive) made changes -
          Remaining Estimate 0 minutes [ 0 ]
          Time Spent 1 hour [ 3600 ]
          Worklog Id 51246 [ 51246 ]
          Paul Borgermans (Inactive) made changes -
          Status Reopened [ 4 ] Closed [ 6 ]
          Resolution Fixed [ 1 ]
          André Rømcke made changes -
          Workflow eZ Engineering Scrumban Workflow [ 64265 ] EZ* Development Workflow [ 85306 ]
          Alex Schuster made changes -
          Workflow EZ* Development Workflow [ 85306 ] EZEE Development Workflow [ 124113 ]
          Transition Time In Source Status Execution Times Last Executer Last Execution Date
          Open Open Confirmed Confirmed
          2m 32s 1 nuno.oliveira@ez.no 22/Aug/14 6:42 PM
          Confirmed Confirmed InputQ InputQ
          1d 16h 56m 1 Gunnstein Lye 24/Aug/14 11:38 AM
          QA QA InputQ InputQ
          8d 22h 22m 2 Paulo Nunes 29/Sep/14 10:01 AM
          InputQ InputQ Development Development
          4d 1h 25m 3 yannick.roger@ez.no 29/Sep/14 10:11 AM
          Development Development Development Review Development Review
          10d 6h 32m 3 yannick.roger@ez.no 29/Sep/14 5:40 PM
          Development Review Development Review Development Review done Development Review done
          13d 13h 43m 3 yannick.roger@ez.no 30/Sep/14 9:49 AM
          Development Review done Development Review done Documentation Review done Documentation Review done
          20s 3 yannick.roger@ez.no 30/Sep/14 9:50 AM
          Documentation Review done Documentation Review done QA QA
          7h 59m 3 Paulo Nunes 30/Sep/14 3:43 PM
          QA QA Closed Closed
          20h 22m 1 Paulo Nunes 01/Oct/14 12:05 PM
          Closed Closed Reopened Reopened
          14d 9h 39m 1 paul.borgermans@ez.no 15/Oct/14 9:44 PM
          Reopened Reopened Closed Closed
          2s 1 paul.borgermans@ez.no 15/Oct/14 9:44 PM

            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