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

Erick Erickson commented on SOLR-12823:
---------------------------------------

[~murblanc] Conceptually, legacyCloud should be removed too. I haven't looked 
to see how difficult that would be. Theoretically it shouldn't be hard.....

re: Perhaps add a check in Overseer and if the old znode exists and is 
non-empty, print an ERROR and abort?

First, I like the "fail fast" nature of this, we either have to do something 
like this or deal with questions about "where did replicas go?" if we just 
ignored clusterstate.json. There are certainly situations I've seen where users 
have some of their data in state.json for the collection and some in 
clusterstate.json. Admittedly they had to work to get there ;).  If a user was 
in this situation however, what could they do to get going with Solr 9? If they 
nuked clusterstate.json, the information would be lost. I suppose they could 
hand-edit the individual state.json files, but that's difficult/error prone.

I'm not necessarily saying we have to do anything special here to handle this 
case, just making sure we've considered the possibility. Personally I'd be fine 
with an upgrade note saying "before upgrading to Solr 9, insure you have no 
data in clusterstate.json. If you do, use the MIGRATESTATEFORMAT command on 
your pre Solr 9 installation before upgrading".

> remove clusterstate.json in Lucene/Solr 8.0
> -------------------------------------------
>
>                 Key: SOLR-12823
>                 URL: https://issues.apache.org/jira/browse/SOLR-12823
>             Project: Solr
>          Issue Type: Task
>            Reporter: Varun Thacker
>            Priority: Major
>
> clusterstate.json is an artifact of a pre 5.0 Solr release. We should remove 
> that in 8.0
> It stays empty unless you explicitly ask to create the collection with the 
> old "stateFormat" and there is no reason for one to create a collection with 
> the old stateFormat.
> We should also remove the "stateFormat" argument in create collection
> We should also remove MIGRATESTATEVERSION as well
>  
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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

Reply via email to