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

Amrit Sarkar commented on SOLR-9272:
------------------------------------

Completed patch with tests with modification in retrieving {{ZK_HOST}} from 
passed {{PORT}} in SolrCLI::getZkHost(..), BUT ran into ::

{code}
 [junit4]   2> 21567 INFO  
(TEST-SolrCLIZkUtilsTest.testMv-seed#[1EF13B9630905526]) [    ] 
o.a.h.i.e.RetryExec I/O exception 
(org.apache.http.conn.UnsupportedSchemeException) caught when processing 
request to {}->http://localhost:63840: http protocol is not supported
   [junit4]   2> 21569 INFO  
(TEST-SolrCLIZkUtilsTest.testMv-seed#[1EF13B9630905526]) [    ] 
o.a.h.i.e.RetryExec Retrying request to {}->http://localhost:63840
   [junit4]   2> 21569 INFO  
(TEST-SolrCLIZkUtilsTest.testMv-seed#[1EF13B9630905526]) [    ] 
o.a.h.i.e.RetryExec I/O exception 
(org.apache.http.conn.UnsupportedSchemeException) caught when processing 
request to {}->http://localhost:63840: http protocol is not supported
   [junit4]   2> 21570 INFO  
(TEST-SolrCLIZkUtilsTest.testMv-seed#[1EF13B9630905526]) [    ] 
o.a.h.i.e.RetryExec Retrying request to {}->http://localhost:63840
   [junit4]   2> 21570 INFO  
(TEST-SolrCLIZkUtilsTest.testMv-seed#[1EF13B9630905526]) [    ] 
o.a.h.i.e.RetryExec I/O exception 
(org.apache.http.conn.UnsupportedSchemeException) caught when processing 
request to {}->http://localhost:63840: http protocol is not supported
   [junit4]   2> 21570 INFO  
(TEST-SolrCLIZkUtilsTest.testMv-seed#[1EF13B9630905526]) [    ] 
o.a.h.i.e.RetryExec Retrying request to {}->http://localhost:63840
   [junit4]   2> 
   [junit4]   2> ERROR: http protocol is not supported
   [junit4]   2> 
   [junit4]   2> 21575 INFO  
(TEST-SolrCLIZkUtilsTest.testMv-seed#[1EF13B9630905526]) [    ] 
o.a.s.SolrTestCaseJ4 ###Ending testMv
   [junit4]   2> NOTE: reproduce with: ant test  -Dtestcase=SolrCLIZkUtilsTest 
-Dtests.method=testMv -Dtests.seed=1EF13B9630905526 -Dtests.slow=true 
-Dtests.locale=es-CR -Dtests.timezone=America/Edmonton -Dtests.asserts=true 
-Dtests.file.encoding=ISO-8859-1
   [junit4] FAILURE 0.46s | SolrCLIZkUtilsTest.testMv <<<
   [junit4]    > Throwable #1: java.lang.AssertionError: Move should have 
succeeded. expected:<0> but was:<1>
   [junit4]    >        at 
__randomizedtesting.SeedInfo.seed([1EF13B9630905526:1353C648AA6C3F0B]:0)
   [junit4]    >        at 
org.apache.solr.cloud.SolrCLIZkUtilsTest.testMv(SolrCLIZkUtilsTest.java:466)
   [junit4]    >        at java.lang.Thread.run(Thread.java:745)
{code}

Looking into how to fix it. Patch uploaded.

> Auto resolve zkHost for bin/solr zk for running Solr
> ----------------------------------------------------
>
>                 Key: SOLR-9272
>                 URL: https://issues.apache.org/jira/browse/SOLR-9272
>             Project: Solr
>          Issue Type: Improvement
>      Security Level: Public(Default Security Level. Issues are Public) 
>          Components: scripts and tools
>    Affects Versions: 6.2
>            Reporter: Jan Høydahl
>            Assignee: Jan Høydahl
>              Labels: newdev
>         Attachments: SOLR-9272.patch, SOLR-9272.patch, SOLR-9272.patch
>
>
> Spinoff from SOLR-9194:
> We can skip requiring {{-z}} for {{bin/solr zk}} for a Solr that is already 
> running. We can optionally accept the {{-p}} parameter instead, and with that 
> use StatusTool to fetch the {{cloud/ZooKeeper}} property from there. It's 
> easier to remember solr port than zk string.
> Example:
> {noformat}
> bin/solr start -c -p 9090
> bin/solr zk ls / -p 9090
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

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

Reply via email to