[
https://issues.apache.org/jira/browse/SOLR-15175?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17323747#comment-17323747
]
Jason Gerlowski commented on SOLR-15175:
----------------------------------------
Hey [~epugh] I looked at reproducing this morning but "async" is working for me
just fine on {{main}}. Maybe this was fixed when the API migrated to a POJO
implementation in SOLR-15118?
If you can still reproduce, lmk. Otherwise maybe we can close this?
See example of async usage with v2 DELETE below:
{code}
➜ solr-9.0.0-SNAPSHOT git:(main) curl -ilk -X DELETE
"http://localhost:8983/v2/collections/collection2?async=aaaaa"
HTTP/1.1 200 OK
Content-Type: application/json;charset=utf-8
Content-Length: 79
{
"responseHeader":{
"status":0,
"QTime":29},
"requestid":"aaaaa"}
➜ solr-9.0.0-SNAPSHOT git:(main) curl -ilk -X GET
"http://localhost:8983/solr/admin/collections?action=REQUESTSTATUS&requestid=aaaaa"
HTTP/1.1 200 OK
Content-Security-Policy: default-src 'none'; base-uri 'none'; connect-src
'self'; form-action 'self'; font-src 'self'; frame-ancestors 'none'; img-src
'self'; media-src 'self'; style-src 'self' 'unsafe-inline'; script-src 'self';
worker-src 'self';
X-Content-Type-Options: nosniff
X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
Content-Type: application/json;charset=utf-8
Content-Length: 1054
{
"responseHeader":{
"status":0,
"QTime":2},
"success":{
"localhost:8983_solr":{
"responseHeader":{
"status":0,
"QTime":1}},
"localhost:8983_solr":{
"responseHeader":{
"status":0,
"QTime":0},
"STATUS":"completed",
"Response":"TaskId: aaaaa801818495654720 webapp=null path=/admin/cores
params={deleteInstanceDir=true&deleteMetricsHistory=true&core=collection2_shard1_replica_n1&async=aaaaa801818495654720&qt=/admin/cores&deleteDataDir=true&action=UNLOAD&wt=javabin&version=2}
status=0 QTime=1"}},
"aaaaa801818495654720":{
"responseHeader":{
"status":0,
"QTime":0},
"STATUS":"completed",
"Response":"TaskId: aaaaa801818495654720 webapp=null path=/admin/cores
params={deleteInstanceDir=true&deleteMetricsHistory=true&core=collection2_shard1_replica_n1&async=aaaaa801818495654720&qt=/admin/cores&deleteDataDir=true&action=UNLOAD&wt=javabin&version=2}
status=0 QTime=1"},
"status":{
"state":"completed",
"msg":"found [aaaaa] in completed tasks"}}
{code}
> v2 delete collection doesn't support the async parameter
> --------------------------------------------------------
>
> Key: SOLR-15175
> URL: https://issues.apache.org/jira/browse/SOLR-15175
> Project: Solr
> Issue Type: Bug
> Components: v2 API
> Affects Versions: main (9.0)
> Reporter: David Eric Pugh
> Priority: Minor
>
> The v2 version of the DELETE command doesn't support the `async` parameter
> that the v1 does.
> There are other v2 commands that support it, so I messed with the apispec
> .json files, but couldn't figure out how to extend them to add this as a
> supported parameter.
>
>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]