Update instructions for index upgrade in SolrCloud mode#4424
Conversation
|
@dsmiley Would appreciate a review here. If this looks good, would also like to cherry-pick to branch_9_11. Thanks! |
… UPGRADEINDEX API description
|
Attaching the corresponding asciidoctor generated html for reference |
|
Thanks @dsmiley. Do you think a note about the UPGRADEINDEX API also belongs in https://github.com/apache/solr/blob/main/solr/solr-ref-guide/modules/upgrade-notes/pages/major-changes-in-solr-9.adoc ? |
|
No because it's not specific to the upgrade to Solr 9.whatever.
|
The UPGRADEINDEX API is currently only available in standalone mode as a CoreAdmin API. However, it is possible to achieve the same goal (i.e. upgrade the index in-place for future Solr major version upgrade) in SolrCloud with the recently introduced LatestVersionMergePolicyFactory. This commit details the steps for the same. (cherry picked from commit 3039f30)
The UPGRADEINDEX API is currently only available in standalone mode as a CoreAdmin API. However, it is possible to achieve the same goal (i.e. upgrade the index in-place for future Solr major version upgrade) in SolrCloud with the recently introduced LatestVersionMergePolicyFactory. This commit details the steps for the same. (cherry picked from commit 3039f30)
The UPGRADEINDEX API is currently only available in standalone mode as a CoreAdmin API. However, it is possible to achieve the same goal (i.e. upgrade the index in-place for future Solr major version upgrade) in SolrCloud with the recently introduced LatestVersionMergePolicyFactory. This commit details the steps for the same. (cherry picked from commit 3039f30)
I agree. I also see some outdated/incomplete information wrt Lucene's IndexUpgraderTool there. Will try to revisit this. Thanks. |
https://issues.apache.org/jira/browse/SOLR-XXXXX
Description
UPGRADEINDEX CoreAdmin API briefly mentions a way to achieve the same goal (of index upgrade) in SolrCloud mode. This PR elaborates on an optimized way to do the same so that progress is preserved across restarts, without blocking external writes, just like with the API.