Comments (3)
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:
- Create a Moodle instance with two users in the same course
- Have the first user send the second a message
- Have the second user respond to the first user message
- Delete the first user
- 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.
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.
closing, Moodle tracker created
from moodle-search_elastic.
Related Issues (20)
- Add support for Elastic Cloud HOT 1
- Consider switching to elastic search PHP SDK
- The status check should only occur on the settings page itself HOT 3
- Improve the connection check
- Unit tests failing in Moodle 4.2 due to phpunit isolation MDL-77989
- search_elastic\guzzle_exception does not fully implement \GuzzleHttp\Psr7\Response HOT 3
- Add support for file content indexing using Elastic Cloud
- Results Order settings value changes when moving through pages of results
- Support 3.10
- Enabling "Wildcard at the start" breaks lucene requests HOT 1
- Migrate from travis to Github Actions
- Failing tests in Moodle 3.10+
- Fix mutiple assertRegExp is deprecated and will be removed in PHPUnit 10
- Fix ci alignment & cleanup for Reusable workflows (master)
- Fix ci alignment & cleanup for Reusable workflows (MOODLE_310_STABLE)
- Any plans on supporting Elasticsearch 8.x? HOT 5
- Modernise the way proxy connections work HOT 1
- Test support for 4.1 -> Some issues found HOT 3
- How to validate that Tika is working HOT 2
- PHP Fatal error runinseparate process
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from moodle-search_elastic.