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

The collection alias api should have a list cmd.

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: SolrCloud
    • Labels:
      None
    1. SOLR-4968.patch
      5 kB
      Mark Miller
    2. SOLR-4968.patch
      5 kB
      Steve Molloy
    3. SOLR-4968.patch
      5 kB
      Steve Molloy

      Issue Links

        Activity

        Hide
        markrmiller@gmail.com Mark Miller added a comment -

        First patch. Response needs some tweaking, test needs some asserts.

        Show
        markrmiller@gmail.com Mark Miller added a comment - First patch. Response needs some tweaking, test needs some asserts.
        Hide
        steve_rowe Steve Rowe added a comment -

        Bulk move 4.4 issues to 4.5 and 5.0

        Show
        steve_rowe Steve Rowe added a comment - Bulk move 4.4 issues to 4.5 and 5.0
        Hide
        gaoagong Bryce Griner added a comment -

        Is there currently a workaround to getting this list of aliases?

        Where do they get stored? If they only get stored in Zookeeper then how can they be backed up in case of a Zookeeper failure where all the config needs to be reloaded back into Zookeeper? Would I just have to recreate all of the aliases?

        Show
        gaoagong Bryce Griner added a comment - Is there currently a workaround to getting this list of aliases? Where do they get stored? If they only get stored in Zookeeper then how can they be backed up in case of a Zookeeper failure where all the config needs to be reloaded back into Zookeeper? Would I just have to recreate all of the aliases?
        Hide
        elyograg Shawn Heisey added a comment -

        Is there currently a workaround to getting this list of aliases?

        Where do they get stored? If they only get stored in Zookeeper then how can they be backed up in case of a Zookeeper failure where all the config needs to be reloaded back into Zookeeper? Would I just have to recreate all of the aliases?

        As far as I know, they are indeed only in zookeeper. You can see them in the Admin UI by clicking the Cloud tab, then Tree, then /aliases.json in the tree view. You should maintain documentation on how you built your SolrCloud and Zookeeper configs so you can recreate them if you lose them entirely.

        A fully redundant zookeeper ensemble with three or more hosts should keep you from encountering a situation where you have to entirely reconstruct the ZK database, but but you do bring up a good point - it is always a good idea to have actual backups in case of severe bugs, human error, or malicious intent.

        Here's some information at the zookeeper level on maintenance and data file management:

        http://zookeeper.apache.org/doc/current/zookeeperAdmin.html#sc_maintenance
        http://zookeeper.apache.org/doc/current/zookeeperAdmin.html#sc_dataFileManagement

        I found these URLs in a Stack Overflow question about backing up zookeeper:

        http://stackoverflow.com/questions/6394140/how-do-you-backup-zookeeper

        Show
        elyograg Shawn Heisey added a comment - Is there currently a workaround to getting this list of aliases? Where do they get stored? If they only get stored in Zookeeper then how can they be backed up in case of a Zookeeper failure where all the config needs to be reloaded back into Zookeeper? Would I just have to recreate all of the aliases? As far as I know, they are indeed only in zookeeper. You can see them in the Admin UI by clicking the Cloud tab, then Tree, then /aliases.json in the tree view. You should maintain documentation on how you built your SolrCloud and Zookeeper configs so you can recreate them if you lose them entirely. A fully redundant zookeeper ensemble with three or more hosts should keep you from encountering a situation where you have to entirely reconstruct the ZK database, but but you do bring up a good point - it is always a good idea to have actual backups in case of severe bugs, human error, or malicious intent. Here's some information at the zookeeper level on maintenance and data file management: http://zookeeper.apache.org/doc/current/zookeeperAdmin.html#sc_maintenance http://zookeeper.apache.org/doc/current/zookeeperAdmin.html#sc_dataFileManagement I found these URLs in a Stack Overflow question about backing up zookeeper: http://stackoverflow.com/questions/6394140/how-do-you-backup-zookeeper
        Hide
        thetaphi Uwe Schindler added a comment -

        Move issue to Solr 4.9.

        Show
        thetaphi Uwe Schindler added a comment - Move issue to Solr 4.9.
        Hide
        gchanan Gregory Chanan added a comment -

        If you don't mind Mark, I'll take a look at updating your patch for 5.0.

        Show
        gchanan Gregory Chanan added a comment - If you don't mind Mark, I'll take a look at updating your patch for 5.0.
        Hide
        shalinmangar Shalin Shekhar Mangar added a comment -

        This information is available with the clusterstatus API:

        https://cwiki.apache.org/confluence/display/solr/Collections+API#CollectionsAPI-api18

        Show
        shalinmangar Shalin Shekhar Mangar added a comment - This information is available with the clusterstatus API: https://cwiki.apache.org/confluence/display/solr/Collections+API#CollectionsAPI-api18
        Hide
        smolloy Steve Molloy added a comment -

        Adapted for 5.3.1, seems to apply well on trunk, but not tested.

        Show
        smolloy Steve Molloy added a comment - Adapted for 5.3.1, seems to apply well on trunk, but not tested.
        Hide
        smolloy Steve Molloy added a comment -

        Same patch without the eclipse workspace part in the paths (not sure why eclipse added those)

        Show
        smolloy Steve Molloy added a comment - Same patch without the eclipse workspace part in the paths (not sure why eclipse added those)
        Hide
        janhoy Jan Høydahl added a comment -

        No activity in almost a year on this... Mark, will you object to instead implement the solution in SOLR-8589 ? Or are you planning to finalize this one instead? (I can live with either)

        Show
        janhoy Jan Høydahl added a comment - No activity in almost a year on this... Mark, will you object to instead implement the solution in SOLR-8589 ? Or are you planning to finalize this one instead? (I can live with either)
        Hide
        markrmiller@gmail.com Mark Miller added a comment -

        It's a small feature and a small patch here, I don't think it matters what issue it gets implemented in. If the other issue has more momentum, I would close this as a duplicate and be sure to credit Steve Molloy in the issue that actually delivers this for his work on it.

        Show
        markrmiller@gmail.com Mark Miller added a comment - It's a small feature and a small patch here, I don't think it matters what issue it gets implemented in. If the other issue has more momentum, I would close this as a duplicate and be sure to credit Steve Molloy in the issue that actually delivers this for his work on it.
        Hide
        ichattopadhyaya Ishan Chattopadhyaya added a comment -

        Fixed in SOLR-10447.

        Show
        ichattopadhyaya Ishan Chattopadhyaya added a comment - Fixed in SOLR-10447 .
        Hide
        jira-bot ASF subversion and git services added a comment -

        Commit 201ebbc5049e5c389ed0a79f6621cd057ed624ea in lucene-solr's branch refs/heads/master from Ishan Chattopadhyaya
        [ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=201ebbc ]

        SOLR-10447, SOLR-4968, SOLR-8589: Adding contributors to CHANGES.txt

        Show
        jira-bot ASF subversion and git services added a comment - Commit 201ebbc5049e5c389ed0a79f6621cd057ed624ea in lucene-solr's branch refs/heads/master from Ishan Chattopadhyaya [ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=201ebbc ] SOLR-10447 , SOLR-4968 , SOLR-8589 : Adding contributors to CHANGES.txt
        Hide
        jira-bot ASF subversion and git services added a comment -

        Commit 3e5f76251a31a629ebcb3a504be6202714d5ce52 in lucene-solr's branch refs/heads/branch_6x from Ishan Chattopadhyaya
        [ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=3e5f762 ]

        SOLR-10447, SOLR-4968, SOLR-8589: Adding contributors to CHANGES.txt

        Show
        jira-bot ASF subversion and git services added a comment - Commit 3e5f76251a31a629ebcb3a504be6202714d5ce52 in lucene-solr's branch refs/heads/branch_6x from Ishan Chattopadhyaya [ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=3e5f762 ] SOLR-10447 , SOLR-4968 , SOLR-8589 : Adding contributors to CHANGES.txt
        Hide
        ichattopadhyaya Ishan Chattopadhyaya added a comment -

        Re-opening to change the Fix versions.

        Show
        ichattopadhyaya Ishan Chattopadhyaya added a comment - Re-opening to change the Fix versions.

          People

          • Assignee:
            markrmiller@gmail.com Mark Miller
            Reporter:
            markrmiller@gmail.com Mark Miller
          • Votes:
            1 Vote for this issue
            Watchers:
            13 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development