Solr
  1. Solr
  2. SOLR-6026

Also check work-queue while processing a REQUESTSTATUS Collection API Call

    Details

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

      Description

      REQUESTSTATUS API call should check for the following:

      • work-queue (submitted task)
      • running-map (running task/in progress)
      • completed-map
      • failure-map

      Right now it checks everything but the work-queue. Add that.

      1. SOLR-6026.patch
        8 kB
        Anshum Gupta
      2. SOLR-6026.patch
        6 kB
        Anshum Gupta

        Activity

        Hide
        Shalin Shekhar Mangar added a comment -

        Does this mean that if there is a large backlog of collection queue items i.e. a task doesn't go into 'running' state soon, the requeststatus API will return a "notfound" response?

        Show
        Shalin Shekhar Mangar added a comment - Does this mean that if there is a large backlog of collection queue items i.e. a task doesn't go into 'running' state soon, the requeststatus API will return a "notfound" response?
        Hide
        Anshum Gupta added a comment -

        Yes. Though I should be able to get to it by the weekend.

        Show
        Anshum Gupta added a comment - Yes. Though I should be able to get to it by the weekend.
        Hide
        Anshum Gupta added a comment -

        This might not be the most efficient way to implement it but I think this is the least intrusive one (something that I wanted right now).

        Contains a patch with a test.

        Show
        Anshum Gupta added a comment - This might not be the most efficient way to implement it but I think this is the least intrusive one (something that I wanted right now). Contains a patch with a test.
        Hide
        Shalin Shekhar Mangar added a comment -

        +1 LGTM

        Show
        Shalin Shekhar Mangar added a comment - +1 LGTM
        Hide
        Anshum Gupta added a comment -

        Some fixes to the tests.

        Show
        Anshum Gupta added a comment - Some fixes to the tests.
        Hide
        ASF subversion and git services added a comment -

        Commit 1599248 from Anshum Gupta in branch 'dev/trunk'
        [ https://svn.apache.org/r1599248 ]

        SOLR-6026: Also check work-queue while processing a REQUESTSTATUS Collection API Call

        Show
        ASF subversion and git services added a comment - Commit 1599248 from Anshum Gupta in branch 'dev/trunk' [ https://svn.apache.org/r1599248 ] SOLR-6026 : Also check work-queue while processing a REQUESTSTATUS Collection API Call
        Hide
        ASF subversion and git services added a comment -

        Commit 1599254 from Anshum Gupta in branch 'dev/branches/branch_4x'
        [ https://svn.apache.org/r1599254 ]

        SOLR-6026: Also check work-queue while processing a REQUESTSTATUS Collection API Call (Merging r1599248 from trunk)

        Show
        ASF subversion and git services added a comment - Commit 1599254 from Anshum Gupta in branch 'dev/branches/branch_4x' [ https://svn.apache.org/r1599254 ] SOLR-6026 : Also check work-queue while processing a REQUESTSTATUS Collection API Call (Merging r1599248 from trunk)

          People

          • Assignee:
            Anshum Gupta
            Reporter:
            Anshum Gupta
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development