Git Product home page Git Product logo

Comments (3)

mattporritt avatar mattporritt commented on June 15, 2024

Congrats @abias you've found a core bug! This will occur regardless of if Solr or Elastic is being used.
Do you want to raise a Moodle tracker or would you prefer if I did it?

My guess is that \core_message\message_sent get_document() needs to be modified to deal with missing users.

I'll keep this issue open until a Moodle tracker is created

To reproduce:

  1. Create a Moodle instance with two users in the same course
  2. Have the first user send the second a message
  3. Have the second user respond to the first user message
  4. Delete the first user
  5. Run the site index task

Trace in English

++ Error retrieving core_message-message_received 1 document, not all required data is available: Invalid user ++
* line 59 of /message/classes/search/base_message.php: call to debugging()
* line 62 of /message/classes/search/message_received.php: call to core_message\search\base_message->get_document()
* line ? of unknownfile: call to core_message\search\message_received->get_document()
* line 103 of /lib/classes/dml/recordset_walk.php: call to call_user_func()
* line 382 of /search/engine/elastic/classes/engine.php: call to core\dml\recordset_walk->current()
* line 666 of /search/classes/manager.php: call to search_elastic\engine->add_documents()
* line 93 of /search/cli/indexer.php: call to core_search\manager->index()
 Processed 1 records containing 1 documents, in 0.028 seconds.

from moodle-search_elastic.

abias avatar abias commented on June 15, 2024

Hi Matt,

Yay, I found another core bug :)
Thanks for your feedback and the investigation.

Here's the tracker issue: https://tracker.moodle.org/browse/MDL-59834.

As far as I see now, this issue does not affect indexing other messages or even other search areas, so I would wait if Moodle HQ picks the bug or not before spending time and money into this topic.

Thanks,
Alex

from moodle-search_elastic.

mattporritt avatar mattporritt commented on June 15, 2024

closing, Moodle tracker created

from moodle-search_elastic.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.