You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@lucene.apache.org by "Ilan Ginzburg (Jira)" <ji...@apache.org> on 2020/05/17 22:25:00 UTC
[jira] [Comment Edited] (SOLR-12823) remove clusterstate.json in
Lucene/Solr 8.0
[ https://issues.apache.org/jira/browse/SOLR-12823?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17109682#comment-17109682 ]
Ilan Ginzburg edited comment on SOLR-12823 at 5/17/20, 10:24 PM:
-----------------------------------------------------------------
When {{/clusterstate.json}} is not empty Solr should not start.
In that case an ERROR log is issued, but the system doesn't nicely stop the startup process. From the {{bin/solr start}} command line things even look ok.
The check got added as soon as there's a connection to ZK, in the {{ZkController}} constructor after {{zkClient}} is built. It throws a {{SolrException}} (or {{ZooKeeperException}}, same behavior) if it's unhappy.
Is there a nicer (yet more drastic) way to give up at this stage rather than leaving the system in a broken state? (UI Admin returns "HTTP ERROR 404 javax.servlet.UnavailableException: Error processing the request. CoreContainer is either not initialized or shutting down.")
I know this will not happen very often and if it does by looking at the logs the user will quickly figure it out, but if things can be made more friendly...
was (Author: murblanc):
When {{/clusterstate.json}} is not empty Solr should not start.
In that an ERROR log is issued, but the system doesn't nicely stop the startup process. From the {{bin/solr start}} command line things even look ok.
The check got added as soon as there's a connection to ZK, in the {{ZkController}} constructor after {{zkClient}} is built. It throws a {{SolrException}} (or {{ZooKeeperException}}, same behavior) if it's unhappy.
Is there a nicer (yet more drastic) way to give up at this stage rather than leaving the system in a broken state? (UI Admin returns "HTTP ERROR 404 javax.servlet.UnavailableException: Error processing the request. CoreContainer is either not initialized or shutting down.")
I know this will not happen very often and if it does by looking at the logs the user will quickly figure it out, but if things can be made more friendly...
> 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-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org