lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (JIRA)" <>
Subject [jira] [Commented] (SOLR-9610) New AssertTool in SolrCLI
Date Sat, 22 Oct 2016 00:31:58 GMT


ASF subversion and git services commented on SOLR-9610:

Commit 3488f12170a6b035391fda719ce69380dc4b2882 in lucene-solr's branch refs/heads/master
from [~janhoy]
[;h=3488f12 ]

SOLR-9610: Bugfix option key for assertTool

> New AssertTool in SolrCLI
> -------------------------
>                 Key: SOLR-9610
>                 URL:
>             Project: Solr
>          Issue Type: Improvement
>      Security Level: Public(Default Security Level. Issues are Public) 
>          Components: scripts and tools
>            Reporter: Jan Høydahl
>            Assignee: Jan Høydahl
>             Fix For: 6.3, master (7.0)
>         Attachments: SOLR-9610.patch, SOLR-9610.patch
> Moving some code from SOLR-7826 over here. This is a new AssertTool which can be used
to assert that we are (not) root user and more. Usage:
> {noformat}
> usage: bin/solr assert [-m <message>] [-e] [-rR] [-s <url>] [-S <url>]
>                 <dir>] [-x <dir>] [-X <dir>]
>  -e,--exitcode                 Return an exit code instead of printing
>                                error message on assert fail.
>  -help                         Print this message
>  -m,--message <message>        Exception message to be used in place of
>                                the default error message
>  -R,--not-root                 Asserts that we are NOT the root user
>  -r,--root                     Asserts that we are the root user
>  -S,--not-started <url>        Asserts that Solr is NOT started on a
>                                certain URL
>  -s,--started <url>            Asserts that Solr is started on a certain
>                                URL
>  -u,--same-user <directory>    Asserts that we run as same user that owns
>                                <directory>
>  -x,--exists <directory>       Asserts that directory <directory> exists
>  -X,--not-exists <directory>   Asserts that directory <directory> does NOT
> {noformat}
> This can then also be used from bin/solr through e.g. {{run_tool assert -r}}, or from
Java Code static methods such as {{AssertTool.assertSolrRunning(String url)}}

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message