Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-16293

It's possible to empty the solr index if there is any issue with the database

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 6.0, 5.4.5
    • Fix Version/s: 10.11.5, 11.2.1
    • Component/s: Search - Solr
    • Labels:
      None
    • Tests:
      Unit
    • Difficulty:
      Unknown
    • Documentation:
      N/A
    • Documentation in Release Notes:
      N/A
    • Similar issues:

      Description

      When a solr search update job is executed (like the one executed at startup) an iterator is used to iterator all the database documents. If one of the request to get the document from the database fail the iterator just log the error but don't not throw any exception. That means the job continue thinking it's done on database side and delete all the documents found on solr side to synchronize the index...

      If there is any issue with DatabaseDocumentIterator the job should strop right away with an error.

        Attachments

          Activity

            People

            • Assignee:
              tmortagne Thomas Mortagne
              Reporter:
              tmortagne Thomas Mortagne
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: