lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jan Høydahl (JIRA) <>
Subject [jira] [Created] (SOLR-9610) New AssertTool in SolrCLI
Date Thu, 06 Oct 2016 20:11:20 GMT
Jan Høydahl created SOLR-9610:

             Summary: New AssertTool in SolrCLI
                 Key: SOLR-9610
             Project: Solr
          Issue Type: Improvement
      Security Level: Public (Default Security Level. Issues are Public)
          Components: scripts and tools
            Reporter: Jan Høydahl

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:

usage: bin/solr assert [-rR] [-s <url>] [-S <url>] [-u <dir>] [-x <dir>]
                [-X <dir>]
 -help                         Print this 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
 -u,--same-user <directory>    Asserts that we run as same user that owns
 -verbose                      Generate verbose log messages
 -x,--exists <directory>       Asserts that directory <directory> exists
 -X,--not-exists <directory>   Asserts that directory <directory> does NOT

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