[ 
https://issues.apache.org/jira/browse/SOLR-16195?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17537058#comment-17537058
 ] 

Atri Sharma commented on SOLR-16195:
------------------------------------

Thanks [~gerlowskija] for fixing this!

 

The docs are indeed out of date – the tasks are contained within each 
collection so that the points of bottleneck are distributed and thus cause 
minimal latency while performing cancellation checks.

> Correct API paths in "Task Management" ref guide page
> -----------------------------------------------------
>
>                 Key: SOLR-16195
>                 URL: https://issues.apache.org/jira/browse/SOLR-16195
>             Project: Solr
>          Issue Type: Improvement
>      Security Level: Public(Default Security Level. Issues are Public) 
>          Components: documentation
>    Affects Versions: 9.0, main (10.0)
>            Reporter: Jason Gerlowski
>            Assignee: Jason Gerlowski
>            Priority: Minor
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> The "Task Management" [Task 
> Management|https://github.com/apache/solr/blob/branch_9_0/solr/solr-ref-guide/modules/deployment-guide/pages/task-management.adoc]
>  page in the ref-guide has API paths for the list-task and cancel-task APIs 
> that appear to not match their actual paths at runtime.
> Documented in Ref Guide
>  - List Tasks: /solr/tasks/list
>  - Cancel Tasks: /solr/tasks/cancel
> But it looks like the documentation is missing a collection-name. Querying 
> the APIs as-documented returns 404's.
> {code:java}
> $ curl -ilk -X GET "http://localhost:8983/solr/tasks/list";
> HTTP/1.1 404 Not Found
> ...
> $ curl -ilk -X GET "http://localhost:8983/solr/tasks/cancel";
> HTTP/1.1 404 Not Found
> ...
> {code}
> Adding a collection name has them return correctly:
> {code:java}
> $ curl -ilk -X GET "http://localhost:8983/solr/books/tasks/list";              
>    
> HTTP/1.1 200 OK
> ...
> $ curl -ilk -X GET 
> "http://localhost:8983/solr/books/tasks/cancel?queryUUID=asdf";
> HTTP/1.1 200 OK
> ...
> {code}
> Assuming that actual paths are what we expect, then the ref-guide docs should 
> be updated to match.



--
This message was sent by Atlassian Jira
(v8.20.7#820007)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@solr.apache.org
For additional commands, e-mail: issues-h...@solr.apache.org

Reply via email to