You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Ishan Chattopadhyaya (JIRA)" <ji...@apache.org> on 2017/03/13 16:44:42 UTC

[jira] [Commented] (SOLR-9492) Request status API returns a completed status even if the collection API call failed

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

Ishan Chattopadhyaya commented on SOLR-9492:
--------------------------------------------

Moving to 6.5, since 6.4 has already been released.


> Request status API returns a completed status even if the collection API call failed
> ------------------------------------------------------------------------------------
>
>                 Key: SOLR-9492
>                 URL: https://issues.apache.org/jira/browse/SOLR-9492
>             Project: Solr
>          Issue Type: Bug
>      Security Level: Public(Default Security Level. Issues are Public) 
>          Components: SolrCloud
>    Affects Versions: 5.5.2, 6.2
>            Reporter: Shalin Shekhar Mangar
>              Labels: difficulty-medium, impact-high
>             Fix For: 6.5, master (7.0)
>
>
> A failed split shard response is:
> {code}
> {success={127.0.0.1:43245_hfnp%2Fbq={responseHeader={status=0,QTime=2}},127.0.0.1:43245_hfnp%2Fbq={responseHeader={status=0,QTime=0}},127.0.0.1:43245_hfnp%2Fbq={responseHeader={status=0,QTime=0}},127.0.0.1:43245_hfnp%2Fbq={responseHeader={status=0,QTime=0}},127.0.0.1:43245_hfnp%2Fbq={responseHeader={status=0,QTime=0}},127.0.0.1:43245_hfnp%2Fbq={responseHeader={status=0,QTime=0}},127.0.0.1:43245_hfnp%2Fbq={responseHeader={status=0,QTime=0}},127.0.0.1:50948_hfnp%2Fbq={responseHeader={status=0,QTime=0}}},c32001ed-3bca-4ae0-baae-25a3c99e35e65883644576126044={responseHeader={status=0,QTime=0},STATUS=completed,Response=TaskId: c32001ed-3bca-4ae0-baae-25a3c99e35e65883644576126044 webapp=null path=/admin/cores params={async=c32001ed-3bca-4ae0-baae-25a3c99e35e65883644576126044&qt=/admin/cores&collection.configName=conf1&name=collection1_shard1_0_replica1&action=CREATE&collection=collection1&shard=shard1_0&wt=javabin&version=2} status=0 QTime=2},c32001ed-3bca-4ae0-baae-25a3c99e35e65883647597130004={responseHeader={status=0,QTime=0},STATUS=completed,Response=TaskId: c32001ed-3bca-4ae0-baae-25a3c99e35e65883647597130004 webapp=null path=/admin/cores params={async=c32001ed-3bca-4ae0-baae-25a3c99e35e65883647597130004&qt=/admin/cores&collection.configName=conf1&name=collection1_shard1_1_replica1&action=CREATE&collection=collection1&shard=shard1_1&wt=javabin&version=2} status=0 QTime=0},c32001ed-3bca-4ae0-baae-25a3c99e35e65883649607943904={responseHeader={status=0,QTime=0},STATUS=completed,Response=TaskId: c32001ed-3bca-4ae0-baae-25a3c99e35e65883649607943904 webapp=null path=/admin/cores params={nodeName=127.0.0.1:43245_hfnp%252Fbq&core=collection1_shard1_1_replica1&async=c32001ed-3bca-4ae0-baae-25a3c99e35e65883649607943904&qt=/admin/cores&coreNodeName=core_node6&action=PREPRECOVERY&checkLive=true&state=active&onlyIfLeader=true&wt=javabin&version=2} status=0 QTime=0},c32001ed-3bca-4ae0-baae-25a3c99e35e65883649612565003={responseHeader={status=0,QTime=0},STATUS=completed,Response=TaskId: c32001ed-3bca-4ae0-baae-25a3c99e35e65883649612565003 webapp=null path=/admin/cores params={core=collection1&async=c32001ed-3bca-4ae0-baae-25a3c99e35e65883649612565003&qt=/admin/cores&action=SPLIT&targetCore=collection1_shard1_0_replica1&targetCore=collection1_shard1_1_replica1&wt=javabin&version=2} status=0 QTime=0},c32001ed-3bca-4ae0-baae-25a3c99e35e65883650618358632={responseHeader={status=0,QTime=0},STATUS=completed,Response=TaskId: c32001ed-3bca-4ae0-baae-25a3c99e35e65883650618358632 webapp=null path=/admin/cores params={async=c32001ed-3bca-4ae0-baae-25a3c99e35e65883650618358632&qt=/admin/cores&name=collection1_shard1_1_replica1&action=REQUESTAPPLYUPDATES&wt=javabin&version=2} status=0 QTime=0},c32001ed-3bca-4ae0-baae-25a3c99e35e65883650636428900={responseHeader={status=0,QTime=0},STATUS=completed,Response=TaskId: c32001ed-3bca-4ae0-baae-25a3c99e35e65883650636428900 webapp=null path=/admin/cores params={async=c32001ed-3bca-4ae0-baae-25a3c99e35e65883650636428900&qt=/admin/cores&collection.configName=conf1&name=collection1_shard1_0_replica0&action=CREATE&collection=collection1&shard=shard1_0&wt=javabin&version=2} status=0 QTime=0},failure={127.0.0.1:43245_hfnp%2Fbq=org.apache.solr.client.solrj.SolrServerException:IOException occured when talking to server at: http://127.0.0.1:43245/hfnp/bq},Operation splitshard caused exception:=org.apache.solr.common.SolrException: ADDREPLICA failed to create replica,exception={msg=ADDREPLICA failed to create replica,rspCode=500}}
> {code}
> Note the "failure" bit. The split shard couldn't add a replica. But when you use the request status API, it returns a "completed" status.
> Apparently, completed doesn't mean it was successful! In any case, it is very misleading and makes it very hard to properly use the Collection APIs. We need more investigation to figure out what other Collection APIs might be affected.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org