Solr
  1. Solr
  2. SOLR-4695

Fix core admin SPLIT action to be useful with non-cloud setups

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.3
    • Component/s: None
    • Labels:
      None

      Description

      The core admin SPLIT action assumes that the core being split is zookeeper aware. It will throw a NPE if invoked against a non-cloud solr setup.

      It should be fixed to work with non-cloud setups and documents in such an index should be distributed alternately into sub-indexes instead of using hashes.

      1. SOLR-4695.patch
        11 kB
        Shalin Shekhar Mangar

        Issue Links

          Activity

          Hide
          Shalin Shekhar Mangar added a comment -
          1. Use CoreContainer.isZookeeperAware before trying to access cloud information
          2. Split alternately if we don't know the real range of the core OR if we are not cloud aware
          3. Test alternate distribution of docs in SolrIndexSplitterTest
          Show
          Shalin Shekhar Mangar added a comment - Use CoreContainer.isZookeeperAware before trying to access cloud information Split alternately if we don't know the real range of the core OR if we are not cloud aware Test alternate distribution of docs in SolrIndexSplitterTest
          Hide
          Commit Tag Bot added a comment -

          [trunk commit] shalin
          http://svn.apache.org/viewvc?view=revision&revision=1466858

          SOLR-4695: Fix core admin SPLIT action to be useful with non-cloud setups. Fixing change log entry.

          Show
          Commit Tag Bot added a comment - [trunk commit] shalin http://svn.apache.org/viewvc?view=revision&revision=1466858 SOLR-4695 : Fix core admin SPLIT action to be useful with non-cloud setups. Fixing change log entry.
          Hide
          Shalin Shekhar Mangar added a comment -

          Committed r1466860 to branch_4x (with the wrong jira issue# unfortunately)

          Show
          Shalin Shekhar Mangar added a comment - Committed r1466860 to branch_4x (with the wrong jira issue# unfortunately)
          Hide
          Uwe Schindler added a comment -

          Closed after release.

          Show
          Uwe Schindler added a comment - Closed after release.

            People

            • Assignee:
              Shalin Shekhar Mangar
              Reporter:
              Shalin Shekhar Mangar
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development