Skip to content
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

[BUGFIX:BP:11.5] Fix Solr response handling during indexing #3544

Conversation

dkd-friedrich
Copy link
Member

What this pr does

If a Solr response is not valid (=200) the index queue item should be marked as failed to prevent the indexer of being blocked. This commit fixes this issue by throwing an IndexingException which causes the IndexService to mark the item as failed.

How to test

  • Add an indexing configuration
  • Initialize the queue
  • Simulate an indexing error on Solr side, e.g. by stopping the Solr container
  • Try to index

Queue items should now be marked as failed and the indexing should not fail silently.

Resolves: #3108

@dkd-friedrich dkd-friedrich force-pushed the bugfix/release-11.5.x/3108-fix_solr_response_handling branch from 4c4d5c9 to 40ad1f6 Compare March 13, 2023 14:43
If a Solr response is not valid (=200) the index queue item should
be marked as failed to prevent the indexer of being blocked. This
commit fixes this issue by throwing an IndexingException which
causes the IndexService to mark the item as failed.

Resolves: TYPO3-Solr#3108
@dkd-friedrich dkd-friedrich force-pushed the bugfix/release-11.5.x/3108-fix_solr_response_handling branch from 40ad1f6 to b1ab80e Compare March 16, 2023 12:07
@dkd-friedrich dkd-friedrich changed the title [BUGFIX:BP:11.5] Fix Solr resonse handling during indexing [BUGFIX:BP:11.5] Fix Solr response handling during indexing Mar 16, 2023
Copy link
Collaborator

@dkd-kaehm dkd-kaehm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍
LGTM

@dkd-friedrich dkd-friedrich merged commit 372a925 into TYPO3-Solr:release-11.5.x Mar 16, 2023
8 of 9 checks passed
@dkd-friedrich dkd-friedrich deleted the bugfix/release-11.5.x/3108-fix_solr_response_handling branch March 16, 2023 15:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants