-
Notifications
You must be signed in to change notification settings - Fork 34
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 #139
Conversation
@SerheyDolgushev what kind of exception are you having issues with? aka could you expand on the issue / motivation for the change here? (ideally in JIRA ticket, and link here) |
Few strange scenarios:
And there might be more strange cases |
Without this PR, if there is a problematic content in the indexing batch (50 items) - indexing for this batch will be stopped. With this PR problematic content will be ignored (an error will be logged) but the rest content will be indexed. |
@alongosz The two cases are:
Should we change interface to state exceptions will be skipped but logged, or do we add exceptions for these cases and document those will be handled? |
If I get it right, the possibilities here are actually limitless due to custom Field Type implementations, so I would log all exceptions and skip. |
As this PR does :) |
@SerheyDolgushev you'll probably need to rebase it to at least branch |
48ca54c
to
177ca25
Compare
@alongosz rebased against |
@SerheyDolgushev Do you have a Jira ticket for this as well? ;) |
Done: https://jira.ez.no/browse/EZP-30664 |
@alongosz given this is bug fix I'd like this on 1.5 and kernel on 6.7, ok? Otherwise we will surely face this coming in via support in the near feature anyway ;) |
…in IncrementalIndexer::updateSearchIndex
177ca25
to
e33b401
Compare
This comment has been minimized.
This comment has been minimized.
Ignore, this also covers cases where for instance field types are missing. So this should be done regardlessly of that. Sending to QA. |
@andrerom @alongosz I suppose this Travis failure is not related to the changes, right? https://travis-ci.org/ezsystems/ezplatform-solr-search-engine/jobs/547806906?utm_medium=notification&utm_source=github_status |
correct, it's something to do with travis, composer or both. Restarted it, but if it still fails it's a clue we need to do some fixes on the branches here to adapt for changes in travis / composer. |
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 Solr.
@alongosz could you merge it up? |
Jira: https://jira.ez.no/browse/EZP-30664
Target version: 1.5 (eZ Platform 1.7+)
Continue to index other content in the iteration when an exception happens.