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

ASF subversion and git services commented on SOLR-17017:
--------------------------------------------------------

Commit 2e0966062dbea44bb568a9cbd3930689635a0f50 in solr's branch 
refs/heads/main from Eric Pugh
[ https://gitbox.apache.org/repos/asf?p=solr.git;h=2e0966062db ]

SOLR-17017: Reset the collection as part of running the example when starting 
Solr... (#2261)

Provide some messaging about running an example via bin/solr start -e MYEXAMPLE 
and the example already exists warning the user that the state isnt' fresh!

> Running an example using Solr start -e should be repeatable 
> ------------------------------------------------------------
>
>                 Key: SOLR-17017
>                 URL: https://issues.apache.org/jira/browse/SOLR-17017
>             Project: Solr
>          Issue Type: Improvement
>          Components: cli, examples
>    Affects Versions: main (10.0)
>            Reporter: Andreas Kiourlappos
>            Priority: Minor
>          Time Spent: 0.5h
>  Remaining Estimate: 0h
>
> h2. Summary
> As a newcomer following the Solr Reference Guide,
> I want to be able to run an example using `solr start -e $EXAMPLE -c`, mess 
> around, stop solr and then rerun the example from scratch again using the 
> initial command.
> h2. Reproduction instructions
> * Checkout [apache/solr commit 
> `16d57e935499a5c3163a224f1e7e55a1091e029a`|https://github.com/apache/solr/commit/16d57e935499a5c3163a224f1e7e55a1091e029a]
> * Build it with `./gradlew dev`
> * Run `solr/packaging/build/dev/bin/solr start -e films -c` to start the 
> films example in cloud mode.
> * Stop solr with `solr/packaging/build/dev/bin/solr stop -all`.
> * Try to rerun the same example with `solr/packaging/build/dev/bin/solr start 
> -e films -c`
> * You end up with error message
> {quote}
> WARNING: Collection 'films' already exists!
> Checked collection existence using Collections API
> {quote}
> h2. Workaround
> Remove the `solr` directory in the example directory before rerunning the 
> example with `rm -r solr/packaging/build/dev/example/films/solr`.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@solr.apache.org
For additional commands, e-mail: issues-h...@solr.apache.org

Reply via email to