Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-5932

DIH: retry query on "terminating connection due to conflict with recovery"

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Won't Fix
    • 4.7
    • None
    • None

    Description

      When running DIH against a hot-standby PostgreSQL database, one may randomly see queries fail with this error:

      org.apache.solr.handler.dataimport.DataImportHandlerException: org.postgresql.util.PSQLException: FATAL: terminating connection due to conflict with recovery
        Detail: User query might have needed to see row versions that must be removed.
        Hint: In a moment you should be able to reconnect to the database and repeat your command.
      

      A reasonable course of action in this case is to catch the error and retry. This would support the use case of doing an initial (possibly lengthy) clean full-import against a hot-standby server, and then just running incremental dataimports against the master.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              gthb Gunnlaugur Thor Briem
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: