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

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Critical
    • 10.11.5
    • 6.0, 5.4.5
    • Search - Solr
    • None
    • Unit
    • Unknown
    • N/A
    • N/A

    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

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

            Dates

              Created:
              Updated:
              Resolved: