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

An endpoint to get the alias for a collection

    Details

    • Type: Task
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 6.6, 7.0
    • Component/s: None
    • Security Level: Public (Default Security Level. Issues are Public)
    • Labels:
      None

      Description

      We have CREATEALIAS and DELTEALIAS commands. However, there's no way to get the aliases that are already there. I propose that we add a GETALIAS LISTALIASES command (Collection API) for this.

      1. SOLR-10447.doc.patch
        1.0 kB
        Ishan Chattopadhyaya
      2. SOLR-10447.patch
        6 kB
        Ishan Chattopadhyaya

        Issue Links

          Activity

          Hide
          ichattopadhyaya Ishan Chattopadhyaya added a comment -

          Adding a patch for LISTALIASES endpoint.

          Show
          ichattopadhyaya Ishan Chattopadhyaya added a comment - Adding a patch for LISTALIASES endpoint.
          Hide
          shalinmangar Shalin Shekhar Mangar added a comment -

          The clusterstatus API lists aliases.

          Show
          shalinmangar Shalin Shekhar Mangar added a comment - The clusterstatus API lists aliases.
          Hide
          ichattopadhyaya Ishan Chattopadhyaya added a comment -

          The CLUSTERSTATUS command returns collection states, and aliases for each of those collections. I didn't find a way to list only the aliases, without listing all the collection states. To fit the ClusterStateProvider model, I needed a way to resolve an alias to a collection name first (using this LISTALIASES api), and then fetch the collection state for that alias.

          Show
          ichattopadhyaya Ishan Chattopadhyaya added a comment - The CLUSTERSTATUS command returns collection states, and aliases for each of those collections. I didn't find a way to list only the aliases, without listing all the collection states. To fit the ClusterStateProvider model, I needed a way to resolve an alias to a collection name first (using this LISTALIASES api), and then fetch the collection state for that alias.
          Hide
          janhoy Jan Høydahl added a comment -

          There are two JIRAs for this already: SOLR-4968 and SOLR-8589

          Show
          janhoy Jan Høydahl added a comment - There are two JIRAs for this already: SOLR-4968 and SOLR-8589
          Hide
          jira-bot ASF subversion and git services added a comment -

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

          SOLR-10447, SOLR-10447: LISTALIASES Collections API command; CloudSolrClient can be initialized using Solr URL

          SOLR-10447: Collections API now supports a LISTALIASES command to return a list of all collection aliases.

          SOLR-10446: CloudSolrClient can now be initialized using the base URL of a Solr instance instead of
          ZooKeeper hosts. This is possible through the use of newly introduced HttpClusterStateProvider.
          To fetch a list of collection aliases, this depends on LISTALIASES command, and hence this way of
          initializing CloudSolrClient would not work with older versions of Solr that doesn't support LISTALIASES.

          Show
          jira-bot ASF subversion and git services added a comment - Commit 4df4c52c0cfb8b47a066a0495bd164f6a4c973de in lucene-solr's branch refs/heads/master from Ishan Chattopadhyaya [ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=4df4c52 ] SOLR-10447 , SOLR-10447 : LISTALIASES Collections API command; CloudSolrClient can be initialized using Solr URL SOLR-10447 : Collections API now supports a LISTALIASES command to return a list of all collection aliases. SOLR-10446 : CloudSolrClient can now be initialized using the base URL of a Solr instance instead of ZooKeeper hosts. This is possible through the use of newly introduced HttpClusterStateProvider. To fetch a list of collection aliases, this depends on LISTALIASES command, and hence this way of initializing CloudSolrClient would not work with older versions of Solr that doesn't support LISTALIASES.
          Hide
          jira-bot ASF subversion and git services added a comment -

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

          SOLR-10447, SOLR-10447: LISTALIASES Collections API command; CloudSolrClient can be initialized using Solr URL

          SOLR-10447: Collections API now supports a LISTALIASES command to return a list of all collection aliases.

          SOLR-10446: CloudSolrClient can now be initialized using the base URL of a Solr instance instead of
          ZooKeeper hosts. This is possible through the use of newly introduced HttpClusterStateProvider.
          To fetch a list of collection aliases, this depends on LISTALIASES command, and hence this way of
          initializing CloudSolrClient would not work with older versions of Solr that doesn't support LISTALIASES.

          Show
          jira-bot ASF subversion and git services added a comment - Commit 4df4c52c0cfb8b47a066a0495bd164f6a4c973de in lucene-solr's branch refs/heads/master from Ishan Chattopadhyaya [ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=4df4c52 ] SOLR-10447 , SOLR-10447 : LISTALIASES Collections API command; CloudSolrClient can be initialized using Solr URL SOLR-10447 : Collections API now supports a LISTALIASES command to return a list of all collection aliases. SOLR-10446 : CloudSolrClient can now be initialized using the base URL of a Solr instance instead of ZooKeeper hosts. This is possible through the use of newly introduced HttpClusterStateProvider. To fetch a list of collection aliases, this depends on LISTALIASES command, and hence this way of initializing CloudSolrClient would not work with older versions of Solr that doesn't support LISTALIASES.
          Hide
          jira-bot ASF subversion and git services added a comment -

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

          SOLR-10447, SOLR-10447: LISTALIASES Collections API command; CloudSolrClient can be initialized using Solr URL

          SOLR-10447: Collections API now supports a LISTALIASES command to return a list of all collection aliases.

          SOLR-10446: CloudSolrClient can now be initialized using the base URL of a Solr instance instead of
          ZooKeeper hosts. This is possible through the use of newly introduced HttpClusterStateProvider.
          To fetch a list of collection aliases, this depends on LISTALIASES command, and hence this way of
          initializing CloudSolrClient would not work with older versions of Solr that doesn't support LISTALIASES.

          Show
          jira-bot ASF subversion and git services added a comment - Commit 4df4c52c0cfb8b47a066a0495bd164f6a4c973de in lucene-solr's branch refs/heads/master from Ishan Chattopadhyaya [ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=4df4c52 ] SOLR-10447 , SOLR-10447 : LISTALIASES Collections API command; CloudSolrClient can be initialized using Solr URL SOLR-10447 : Collections API now supports a LISTALIASES command to return a list of all collection aliases. SOLR-10446 : CloudSolrClient can now be initialized using the base URL of a Solr instance instead of ZooKeeper hosts. This is possible through the use of newly introduced HttpClusterStateProvider. To fetch a list of collection aliases, this depends on LISTALIASES command, and hence this way of initializing CloudSolrClient would not work with older versions of Solr that doesn't support LISTALIASES.
          Hide
          jira-bot ASF subversion and git services added a comment -

          Commit 7eedb81c4274bf1b9ad4f3b2e3ef6ae1b816469e 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=7eedb81 ]

          SOLR-10447, SOLR-10447: LISTALIASES Collections API command; CloudSolrClient can be initialized using Solr URL

          SOLR-10447: Collections API now supports a LISTALIASES command to return a list of all collection aliases.

          SOLR-10446: CloudSolrClient can now be initialized using the base URL of a Solr instance instead of
          ZooKeeper hosts. This is possible through the use of newly introduced HttpClusterStateProvider.
          To fetch a list of collection aliases, this depends on LISTALIASES command, and hence this way of
          initializing CloudSolrClient would not work with older versions of Solr that doesn't support LISTALIASES.

          Show
          jira-bot ASF subversion and git services added a comment - Commit 7eedb81c4274bf1b9ad4f3b2e3ef6ae1b816469e 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=7eedb81 ] SOLR-10447 , SOLR-10447 : LISTALIASES Collections API command; CloudSolrClient can be initialized using Solr URL SOLR-10447 : Collections API now supports a LISTALIASES command to return a list of all collection aliases. SOLR-10446 : CloudSolrClient can now be initialized using the base URL of a Solr instance instead of ZooKeeper hosts. This is possible through the use of newly introduced HttpClusterStateProvider. To fetch a list of collection aliases, this depends on LISTALIASES command, and hence this way of initializing CloudSolrClient would not work with older versions of Solr that doesn't support LISTALIASES.
          Hide
          jira-bot ASF subversion and git services added a comment -

          Commit 7eedb81c4274bf1b9ad4f3b2e3ef6ae1b816469e 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=7eedb81 ]

          SOLR-10447, SOLR-10447: LISTALIASES Collections API command; CloudSolrClient can be initialized using Solr URL

          SOLR-10447: Collections API now supports a LISTALIASES command to return a list of all collection aliases.

          SOLR-10446: CloudSolrClient can now be initialized using the base URL of a Solr instance instead of
          ZooKeeper hosts. This is possible through the use of newly introduced HttpClusterStateProvider.
          To fetch a list of collection aliases, this depends on LISTALIASES command, and hence this way of
          initializing CloudSolrClient would not work with older versions of Solr that doesn't support LISTALIASES.

          Show
          jira-bot ASF subversion and git services added a comment - Commit 7eedb81c4274bf1b9ad4f3b2e3ef6ae1b816469e 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=7eedb81 ] SOLR-10447 , SOLR-10447 : LISTALIASES Collections API command; CloudSolrClient can be initialized using Solr URL SOLR-10447 : Collections API now supports a LISTALIASES command to return a list of all collection aliases. SOLR-10446 : CloudSolrClient can now be initialized using the base URL of a Solr instance instead of ZooKeeper hosts. This is possible through the use of newly introduced HttpClusterStateProvider. To fetch a list of collection aliases, this depends on LISTALIASES command, and hence this way of initializing CloudSolrClient would not work with older versions of Solr that doesn't support LISTALIASES.
          Hide
          jira-bot ASF subversion and git services added a comment -

          Commit 7eedb81c4274bf1b9ad4f3b2e3ef6ae1b816469e 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=7eedb81 ]

          SOLR-10447, SOLR-10447: LISTALIASES Collections API command; CloudSolrClient can be initialized using Solr URL

          SOLR-10447: Collections API now supports a LISTALIASES command to return a list of all collection aliases.

          SOLR-10446: CloudSolrClient can now be initialized using the base URL of a Solr instance instead of
          ZooKeeper hosts. This is possible through the use of newly introduced HttpClusterStateProvider.
          To fetch a list of collection aliases, this depends on LISTALIASES command, and hence this way of
          initializing CloudSolrClient would not work with older versions of Solr that doesn't support LISTALIASES.

          Show
          jira-bot ASF subversion and git services added a comment - Commit 7eedb81c4274bf1b9ad4f3b2e3ef6ae1b816469e 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=7eedb81 ] SOLR-10447 , SOLR-10447 : LISTALIASES Collections API command; CloudSolrClient can be initialized using Solr URL SOLR-10447 : Collections API now supports a LISTALIASES command to return a list of all collection aliases. SOLR-10446 : CloudSolrClient can now be initialized using the base URL of a Solr instance instead of ZooKeeper hosts. This is possible through the use of newly introduced HttpClusterStateProvider. To fetch a list of collection aliases, this depends on LISTALIASES command, and hence this way of initializing CloudSolrClient would not work with older versions of Solr that doesn't support LISTALIASES.
          Hide
          ichattopadhyaya Ishan Chattopadhyaya added a comment -

          There are two JIRAs for this already: SOLR-4968 and SOLR-8589

          Alas, just saw this after committing. I guess we'll now need to live with this, or back this out and re-work as per any of those other JIRAs.

          Show
          ichattopadhyaya Ishan Chattopadhyaya added a comment - There are two JIRAs for this already: SOLR-4968 and SOLR-8589 Alas, just saw this after committing. I guess we'll now need to live with this, or back this out and re-work as per any of those other JIRAs.
          Hide
          shalinmangar Shalin Shekhar Mangar added a comment -

          I guess we'll now need to live with this, or back this out and re-work as per any of those other JIRAs.

          Or, you know, we could close the other issues and point to this one

          Show
          shalinmangar Shalin Shekhar Mangar added a comment - I guess we'll now need to live with this, or back this out and re-work as per any of those other JIRAs. Or, you know, we could close the other issues and point to this one
          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 -

          Thanks to everyone for contributing to SOLR-4968 and SOLR-8589. Apologies for committing this without participating in discussions on those linked issues; it was an oversight on my part.

          Show
          ichattopadhyaya Ishan Chattopadhyaya added a comment - Thanks to everyone for contributing to SOLR-4968 and SOLR-8589 . Apologies for committing this without participating in discussions on those linked issues; it was an oversight on my part.
          Hide
          jira-bot ASF subversion and git services added a comment -

          Commit 05ed7cf02440ede6f1f67786ea85a49c8af8ea76 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=05ed7cf ]

          SOLR-10447, SOLR-8589: Adding Yago Riveiro to changelog

          Show
          jira-bot ASF subversion and git services added a comment - Commit 05ed7cf02440ede6f1f67786ea85a49c8af8ea76 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=05ed7cf ] SOLR-10447 , SOLR-8589 : Adding Yago Riveiro to changelog
          Hide
          jira-bot ASF subversion and git services added a comment -

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

          SOLR-10447, SOLR-8589: Adding Yago Riveiro to changelog

          Show
          jira-bot ASF subversion and git services added a comment - Commit d286864d801bc3ba2c51714a41d58632e7da1200 in lucene-solr's branch refs/heads/master from Ishan Chattopadhyaya [ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=d286864 ] SOLR-10447 , SOLR-8589 : Adding Yago Riveiro to changelog
          Hide
          janhoy Jan Høydahl added a comment -

          Apologies for committing this without participating in discussions on those linked issues; it was an oversight on my part.

          One should always look for existing JIRAs before creating a new one. But given that the other issues had stalled, I welcome progress on this one and willingly forgive

          Show
          janhoy Jan Høydahl added a comment - Apologies for committing this without participating in discussions on those linked issues; it was an oversight on my part. One should always look for existing JIRAs before creating a new one. But given that the other issues had stalled, I welcome progress on this one and willingly forgive
          Hide
          mdrob Mike Drob added a comment -

          Ishan Chattopadhyaya - is everything here done? can we tag the correct fix versions and close this out?

          Show
          mdrob Mike Drob added a comment - Ishan Chattopadhyaya - is everything here done? can we tag the correct fix versions and close this out?
          Hide
          jira-bot ASF subversion and git services added a comment -

          Commit a786f2eb4e6157334c516a2fba98f93cef800dc2 in lucene-solr's branch refs/heads/master from Cassandra Targett
          [ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=a786f2e ]

          Ref Guide: Placeholders for docs for SOLR-10239 & SOLR-10447

          Show
          jira-bot ASF subversion and git services added a comment - Commit a786f2eb4e6157334c516a2fba98f93cef800dc2 in lucene-solr's branch refs/heads/master from Cassandra Targett [ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=a786f2e ] Ref Guide: Placeholders for docs for SOLR-10239 & SOLR-10447
          Hide
          ichattopadhyaya Ishan Chattopadhyaya added a comment -

          Updated documentation. Cassandra Targett, please review.

          Show
          ichattopadhyaya Ishan Chattopadhyaya added a comment - Updated documentation. Cassandra Targett , please review.
          Hide
          ctargett Cassandra Targett added a comment -

          Patch looks good Ishan Chattopadhyaya - +1 to commit.

          Show
          ctargett Cassandra Targett added a comment - Patch looks good Ishan Chattopadhyaya - +1 to commit.
          Hide
          jira-bot ASF subversion and git services added a comment -

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

          SOLR-10447: Ref guide documentation

          Show
          jira-bot ASF subversion and git services added a comment - Commit ac26d81116079365dfdb8d70e8e0f50f93749b8b in lucene-solr's branch refs/heads/master from Ishan Chattopadhyaya [ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=ac26d81 ] SOLR-10447 : Ref guide documentation
          Hide
          jira-bot ASF subversion and git services added a comment -

          Commit a607efa6fd3b9f56a2afaad5e2634df216c4eff4 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=a607efa ]

          SOLR-10447: Ref guide documentation

          Show
          jira-bot ASF subversion and git services added a comment - Commit a607efa6fd3b9f56a2afaad5e2634df216c4eff4 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=a607efa ] SOLR-10447 : Ref guide documentation
          Hide
          jira-bot ASF subversion and git services added a comment -

          Commit 0a28cdea55decf0d6bd26daa8fa67e18bdfa7ad5 in lucene-solr's branch refs/heads/branch_6_6 from Ishan Chattopadhyaya
          [ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=0a28cde ]

          SOLR-10447: Ref guide documentation

          Show
          jira-bot ASF subversion and git services added a comment - Commit 0a28cdea55decf0d6bd26daa8fa67e18bdfa7ad5 in lucene-solr's branch refs/heads/branch_6_6 from Ishan Chattopadhyaya [ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=0a28cde ] SOLR-10447 : Ref guide documentation
          Hide
          ichattopadhyaya Ishan Chattopadhyaya added a comment -
          Show
          ichattopadhyaya Ishan Chattopadhyaya added a comment - Thanks Cassandra Targett .

            People

            • Assignee:
              ichattopadhyaya Ishan Chattopadhyaya
              Reporter:
              ichattopadhyaya Ishan Chattopadhyaya
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development