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

Core Deleted After Failed Index Fetch When Replication Disabled

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 5.1
    • Fix Version/s: None
    • Component/s: replication (java)
    • Labels:
      None
    • Environment:

      Windows Server 2008 R2

      Description

      I am getting occasional Index Fetch Failures (due to server overloading I suspect). This is appearing in my log file as

      Master at: http://MOTOSOLR01:9000/solr/ShowcaseData is not available. Index fetch failed. Exception: Server refused connection at: http://MOTOSOLR01:9000/solr/ShowcaseData

      At the point of the failure the master version of the core has replication disabled (but still contains data) and it appears that on the next replication cycle that the slave version of the core is being emptied. Once replication is enabled everything works as expected.

      Having looked at the source code I suspect that lines 311-327 in indexfetcher.java are at fault. What I think is happening is that the failed IndexFetch is setting forcereplication to true, and this cause a forced delete of the core before reloading the core (which then doesn't happen as replication is disabled)

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              motors-philw phil watson
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: