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

last replica removal cascades to remove shard from clusterstate

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Blocker
    • Resolution: Fixed
    • 4.4
    • 6.0
    • SolrCloud
    • None

    Description

      The problem we saw was that unloading of an only replica of a shard deleted that shard's info from the clusterstate. Once it was gone then there was no easy way to re-create the shard (other than dropping and re-creating the whole collection's state).

      This seems like a bug?

      Overseer.java around line 600 has a comment and commented out code:
      // TODO TODO TODO!!! if there are no replicas left for the slice, and the slice has no hash range, remove it
      // if (newReplicas.size() == 0 && slice.getRange() == null) {
      // if there are no replicas left for the slice remove it

      Attachments

        1. SOLR-5209.patch
          17 kB
          Christine Poerschke
        2. SOLR-5209.patch
          1 kB
          Christine Poerschke

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            cpoerschke Christine Poerschke
            cpoerschke Christine Poerschke
            Votes:
            2 Vote for this issue
            Watchers:
            13 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment