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

Steve Rowe commented on SOLR-12868:
-----------------------------------

As of commit {{f33be7a}} on this issue, {{TestV2Request}} is failing nearly 
100% of the time, e.g. from 
[https://jenkins.thetaphi.de/job/Lucene-Solr-master-Windows/7585]:

{noformat}
Checking out Revision f33be7a172d7b4596530d8cb925ba6dd1f1f53f0 
(refs/remotes/origin/master)
[...]
   [junit4] Suite: org.apache.solr.client.solrj.request.TestV2Request
[...]
   [junit4]   1> livenodes: [127.0.0.1:61086_solr, 127.0.0.1:61091_solr, 
127.0.0.1:61096_solr, 127.0.0.1:61105_solr]
   [junit4]   1> 04:51:45.352 [qtp14589558-428] ERROR 
org.apache.solr.api.V2HttpCall - >> path: '/c/_introspect'
   [junit4]   2> NOTE: reproduce with: ant test  -Dtestcase=TestV2Request 
-Dtests.method=testHttpSolrClient -Dtests.seed=F4038E7A593F7B4D 
-Dtests.slow=true -Dtests.locale=lv -Dtests.timezone=America/Winnipeg 
-Dtests.asserts=true -Dtests.file.encoding=Cp1252
   [junit4] FAILURE 6.31s J0 | TestV2Request.testHttpSolrClient <<<
   [junit4]    > Throwable #1: java.lang.AssertionError: expected:<0> but 
was:<1>
   [junit4]    >        at 
__randomizedtesting.SeedInfo.seed([F4038E7A593F7B4D:2C1B9650F80B696A]:0)
   [junit4]    >        at 
org.apache.solr.client.solrj.request.TestV2Request.doTest(TestV2Request.java:105)
   [junit4]    >        at 
org.apache.solr.client.solrj.request.TestV2Request.testHttpSolrClient(TestV2Request.java:70)
   [junit4]    >        at java.lang.Thread.run(Thread.java:748)
   [junit4]   1> 04:51:51.726 [qtp4981319-439] ERROR 
org.apache.solr.api.V2HttpCall - >> path: '/c/_introspect'
   [junit4]   2> NOTE: reproduce with: ant test  -Dtestcase=TestV2Request 
-Dtests.method=testCloudSolrClient -Dtests.seed=F4038E7A593F7B4D 
-Dtests.slow=true -Dtests.locale=lv -Dtests.timezone=America/Winnipeg 
-Dtests.asserts=true -Dtests.file.encoding=Cp1252
   [junit4] FAILURE 6.02s J0 | TestV2Request.testCloudSolrClient <<<
   [junit4]    > Throwable #1: java.lang.AssertionError: expected:<0> but 
was:<1>
   [junit4]    >        at 
__randomizedtesting.SeedInfo.seed([F4038E7A593F7B4D:6DF505CAFC8CF326]:0)
   [junit4]    >        at 
org.apache.solr.client.solrj.request.TestV2Request.doTest(TestV2Request.java:105)
   [junit4]    >        at 
org.apache.solr.client.solrj.request.TestV2Request.testCloudSolrClient(TestV2Request.java:77)
   [junit4]    >        at java.lang.Thread.run(Thread.java:748)
   [junit4]   1> 04:51:53.783 
[SUITE-TestV2Request-seed#[F4038E7A593F7B4D]-worker] ERROR 
org.apache.zookeeper.server.ZooKeeperServer - ZKShutdownHandler is not 
registered, so ZooKeeper server won't take any action on ERROR or SHUTDOWN 
server state changes
   [junit4]   2> NOTE: leaving temporary files on disk at: 
C:\Users\jenkins\workspace\Lucene-Solr-master-Windows\solr\build\solr-solrj\test\J0\temp\solr.client.solrj.request.TestV2Request_F4038E7A593F7B4D-001
   [junit4]   2> Oct 26, 2018 4:51:53 AM 
com.carrotsearch.randomizedtesting.ThreadLeakControl checkThreadLeaks
   [junit4]   2> WARNING: Will linger awaiting termination of 10 leaked 
thread(s).
   [junit4]   2> Oct 26, 2018 4:53:13 AM 
com.carrotsearch.randomizedtesting.ThreadLeakControl checkThreadLeaks
   [junit4]   2> SEVERE: 1 thread leaked from SUITE scope at 
org.apache.solr.client.solrj.request.TestV2Request: 
   [junit4]   2>    1) Thread[id=550, name=Connection evictor, 
state=TIMED_WAITING, group=TGRP-TestV2Request]
   [junit4]   2>         at java.lang.Thread.sleep(Native Method)
   [junit4]   2>         at 
org.apache.http.impl.client.IdleConnectionEvictor$1.run(IdleConnectionEvictor.java:66)
   [junit4]   2>         at java.lang.Thread.run(Thread.java:748)
   [junit4]   2> Oct 26, 2018 4:53:13 AM 
com.carrotsearch.randomizedtesting.ThreadLeakControl tryToInterruptAll
   [junit4]   2> INFO: Starting to interrupt leaked threads:
   [junit4]   2>    1) Thread[id=550, name=Connection evictor, 
state=TIMED_WAITING, group=TGRP-TestV2Request]
   [junit4]   2> Oct 26, 2018 4:53:13 AM 
com.carrotsearch.randomizedtesting.ThreadLeakControl tryToInterruptAll
   [junit4]   2> INFO: All leaked threads terminated.
   [junit4]   2> NOTE: test params are: codec=CheapBastard, 
sim=Asserting(org.apache.lucene.search.similarities.AssertingSimilarity@1e6d741),
 locale=lv, timezone=America/Winnipeg
   [junit4]   2> NOTE: Windows 10 10.0 x86/Oracle Corporation 1.8.0_172 
(32-bit)/cpus=3,threads=1,free=87644232,total=185597952
   [junit4]   2> NOTE: All tests run in this JVM: [TestFastWriter, 
CollectionAdminRequestRequiredParamsTest, UniformDistributionEvaluatorTest, 
ArcCosineEvaluatorTest, LessThanEqualToEvaluatorTest, SolrExampleEmbeddedTest, 
TestTimeSource, TestXMLEscaping, GraphExpressionTest, DivideEvaluatorTest, 
CloudSolrClientBuilderTest, AscEvaluatorTest, FieldAnalysisResponseTest, 
TestV2Request]
   [junit4]   2> NOTE: reproduce with: ant test  -Dtestcase=TestV2Request 
-Dtests.seed=F4038E7A593F7B4D -Dtests.slow=true -Dtests.locale=lv 
-Dtests.timezone=America/Winnipeg -Dtests.asserts=true 
-Dtests.file.encoding=Cp1252
   [junit4] ERROR   0.00s J0 | TestV2Request (suite) <<<
   [junit4]    > Throwable #1: 
com.carrotsearch.randomizedtesting.ThreadLeakError: 1 thread leaked from SUITE 
scope at org.apache.solr.client.solrj.request.TestV2Request: 
   [junit4]    >    1) Thread[id=550, name=Connection evictor, 
state=TIMED_WAITING, group=TGRP-TestV2Request]
   [junit4]    >         at java.lang.Thread.sleep(Native Method)
   [junit4]    >         at 
org.apache.http.impl.client.IdleConnectionEvictor$1.run(IdleConnectionEvictor.java:66)
   [junit4]    >         at java.lang.Thread.run(Thread.java:748)
   [junit4]    >        at 
__randomizedtesting.SeedInfo.seed([F4038E7A593F7B4D]:0)
   [junit4] Completed [67/162 (1!)] on J0 in 97.96s, 4 tests, 2 failures, 1 
error <<< FAILURES!
{noformat}


> Request forwarding for v2 API is broken
> ---------------------------------------
>
>                 Key: SOLR-12868
>                 URL: https://issues.apache.org/jira/browse/SOLR-12868
>             Project: Solr
>          Issue Type: Bug
>      Security Level: Public(Default Security Level. Issues are Public) 
>          Components: SolrCloud, v2 API
>            Reporter: Shalin Shekhar Mangar
>            Assignee: Noble Paul
>            Priority: Major
>             Fix For: 7.6, master (8.0)
>
>
> I was working with Noble Paul to investigate test failures seen in SOLR-12806 
> where we found this issue. Due to a bug, replicas of a collection weren't 
> spread evenly so there were some nodes which did not have any replicas at 
> all. In such cases, when a v2 API call hits an empty node, it is not 
> forwarded to the right path on the remote node causing test failures.
> e.g. a call to {{/c/collection/_introspect}} is forwarded as 
> {{http://127.0.0.1:63326/solr/collection1/_introspect?method=POST&wt=javabin&version=2&command=XXXX}}
>  and {{/c/collection1/abccdef}} is forwarded as 
> {{http://127.0.0.1:63326/solr/collection1/abccdef}}
> In summary, a remote query for v2 API from an empty node is converted to a v1 
> style call which may not be a valid path. We should forward v2 API calls 
> as-is without changing the paths.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to