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

The 'addreplica' Collection API does not support async parameter

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 4.8, 4.8.1
    • Fix Version/s: 4.9, 6.0
    • Component/s: SolrCloud
    • Labels:
      None

      Description

      The 'addreplica' API does not support an 'async' parameter which was added by SOLR-5477.

      1. SOLR-6104.patch
        4 kB
        Shalin Shekhar Mangar

        Activity

        Hide
        shalinmangar Shalin Shekhar Mangar added a comment - - edited

        On further investigation I found that support for async was present in OCP (it is implemented automatically for all APIs) but neither the asyncId param was passed by CollectionHandler nor the core admin API calls made by addreplica were asynchronous so a timeout from core admin API could fail the call.

        I have fixed all these issues and added a test in CollectionsAPIAsyncDistributedZkTest.

        Show
        shalinmangar Shalin Shekhar Mangar added a comment - - edited On further investigation I found that support for async was present in OCP (it is implemented automatically for all APIs) but neither the asyncId param was passed by CollectionHandler nor the core admin API calls made by addreplica were asynchronous so a timeout from core admin API could fail the call. I have fixed all these issues and added a test in CollectionsAPIAsyncDistributedZkTest.
        Hide
        jira-bot ASF subversion and git services added a comment -

        Commit 1596822 from shalin@apache.org in branch 'dev/trunk'
        [ https://svn.apache.org/r1596822 ]

        SOLR-6104: The 'addreplica' Collection API does not support 'async' parameter

        Show
        jira-bot ASF subversion and git services added a comment - Commit 1596822 from shalin@apache.org in branch 'dev/trunk' [ https://svn.apache.org/r1596822 ] SOLR-6104 : The 'addreplica' Collection API does not support 'async' parameter
        Hide
        jira-bot ASF subversion and git services added a comment -

        Commit 1596823 from shalin@apache.org in branch 'dev/branches/branch_4x'
        [ https://svn.apache.org/r1596823 ]

        SOLR-6104: The 'addreplica' Collection API does not support 'async' parameter

        Show
        jira-bot ASF subversion and git services added a comment - Commit 1596823 from shalin@apache.org in branch 'dev/branches/branch_4x' [ https://svn.apache.org/r1596823 ] SOLR-6104 : The 'addreplica' Collection API does not support 'async' parameter

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development