-
Notifications
You must be signed in to change notification settings - Fork 203
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
EZP-30664: Skipped indexing erroneous Content and logged all exceptions #2666
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- We should adapt
IncrementalIndexer::updateSearchIndex()
phpdoc to cover this as well. - Tentative: If @alongosz aggrees on EZP-30664: Skipped indexing erroneous Content and logged all exceptions ezplatform-solr-search-engine#139 (comment), this should be targeting 6.7.
Indeed it might be worth to fix it on all LTS-es. |
Ok, seems all is clear then. So @SerheyDolgushev, change branch to 6.7 here and 1.5 on solr. And also add something like the following on * Then item is removed from index, if not it is added/updated.
+ *
+ * If generic unhandled exception is thrown, then item indexing is skipped and warning is logged.
*
* @param int[] $contentIds |
561e5b9
to
87b7e0f
Compare
@andrerom done. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unsure, I think we rather should put some focus on finishing #2221 as it does this more cleanly.
Indeed that one provides much more improved solution... but probably won't solve the issue at hand. Please notice that for #2221 to work, custom 3rd party FT implementation must handle exceptions by throwing |
@alongosz not really, there is nothing against to catch generic |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, this adds value by not blocking indexing by default. And makes it much easier to read out errors during indexing to be able to solve those issues separately.
So sending this to QA.
@micszo no, it should start from 6.13 if relevant. |
@SerheyDolgushev could you please update base and rebase? |
@SerheyDolgushev remember to update base here first before you push ( |
de44d8e
to
eb3b40e
Compare
@andrerom I did:
|
@micszo This is a monolog log, not an output, so not really. Adding it here is a bit artificial and would result in blank lines in log files as well. AFAICS we don't have control over output in this case, it's a side effect of |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
QA Approved on eZ Studio v1.13.5 & eZ Platform EE 2.5 with LSE.
@alongosz could you merge it up? |
Merged up to Thank you @SerheyDolgushev 🎉 |
6.7
Similar to ezsystems/ezplatform-solr-search-engine#139, but it is done for legacy search engine.
TODO:
$ composer fix-cs
).