Open porgabi opened 3 months ago
Thank you for submitting your first issue, awesome! š We're thrilled to receive your input. If you haven't completed the template yet, please take a moment to do so. This ensures that we fully understand your feature request or bug report. On what happens next, see the docs.
If you like Orchard Core, please star our repo and join our community channels.
Do you have a workaround, perhaps?
We triaged this issue and set the milestone according to the priority we think is appropriate (see the docs on how we triage and prioritize issues).
This indicates when the core team may start working on it. However, if you'd like to contribute, we'd warmly welcome you to do that anytime. See our guide on contributions here.
Do you have a workaround, perhaps?
As far as I have seen, this issue can be avoided by ensuring in the recipe that the content item creation steps run after the Elasticsearch config ones.
You've only seen this in a setup recipe, not otherwise, right?
Yes.
Exactly the same error can no longer occur in main, because the ElasticIndexingService
no longer uses a separate ShellScope
. That doesn't mean a similar bug doesn't still exist, but I haven't been able to find it yet.
Describe the bug
When the Elasticsearch feature is enabled and its configuration is run in a setup recipe, sometimes the logs contain the following exception after site setup:
This seems to happen only when the
elastic-index-rebuild
step is run after content items have been created, and it doesn't happen every single time either. Depending on the environment, it can happen frequently or pretty much none at all, so it's hard to pinpoint what the exact cause of the problem may be. The fact that this kept happening on VMs suggests it could be a performance-related issue.Orchard Core version
1.8.3
To Reproduce
Steps to (maybe) reproduce the behavior:
ElasticIndexSettings
,Settings
that containElasticSettings
,elastic-index-rebuild
, andQueries
) to a setup recipe.Expected behavior
There should be either no such exception or a consistent appearance of the exception.