Skip to content

7373 solr upgrade#7645

Merged
kcondon merged 19 commits intodevelopfrom
7373-solr-upgrade
Mar 5, 2021
Merged

7373 solr upgrade#7645
kcondon merged 19 commits intodevelopfrom
7373-solr-upgrade

Conversation

@sekmiller
Copy link
Copy Markdown
Contributor

What this PR does / why we need it:
Revises the doc and adds release notes related to upgrading Solr

Which issue(s) this PR closes:

Closes #7373

Special notes for your reviewer:
No code to review. I followed the instructions for installing Solr while using the latest stable release (8.8.1). Normal processing of indexes including reindex all for my small local db worked without a hitch. Verify that I caught all the places where the doc and install scripts need to be updated.

Suggestions on how to test this:
Install and run the new version of solr. verify that indexing works as expected

Does this PR introduce a user interface change? If mockups are available, please link/include them here:
No

Is there a release notes update needed for this change?:
doc/release-notes/7373-solr-upgrade.md

Additional documentation:
Doc changes were made to prerequisites, dev environment, and metadata sections

Copy link
Copy Markdown
Contributor

@scolapasta scolapasta left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good - just some questions to consider.

#wget https://archive.apache.org/dist/lucene/solr/7.3.0/solr-7.3.0.tgz -O solr-7.3.0dv.tgz
wget https://archive.apache.org/dist/lucene/solr/7.7.2/solr-7.7.2.tgz -O solr-7.7.2dv.tgz
cd dv/deps/
wget https://archive.apache.org/dist/lucene/solr/8.8.2/solr-8.8.1.tgz -O solr-8.8.1dv.tgz
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

8.8.2 directory, but 8.81 version?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Typo. will fix.

@@ -0,0 +1,11 @@
### Solr Update

With this release we upgrade to the latest available stable release in the Solr 8.x branch. We recommend a fresh installation of Solr 8.8.1 (the index will be empty)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we want to consider porting the old index and incremental index all? (what have we done for past Solr upgrades?)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I didn't consider that. This is close to the release note we used when we went to 7.7.2

Copy link
Copy Markdown
Member

@pdurbin pdurbin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I only took a quick look but I think I found a typo in the Vagrant script.

Overall, I'm glad that both Vagrant and docker-aio were updated.

su $SOLR_USER -s /bin/sh -c "cp /dataverse/conf/solr/7.7.2/solrconfig.xml $SOLR_HOME/solr-7.7.2/server/solr/collection1/conf/solrconfig.xml"
su $SOLR_USER -s /bin/sh -c "cd $SOLR_HOME/solr-7.7.2 && bin/solr start && bin/solr create_core -c collection1 -d server/solr/collection1/conf/"
su $SOLR_USER -s /bin/sh -c "cp /dataverse/downloads/solr-8.8.1.tgz $SOLR_HOME"
su $SOLR_USER -s /bin/sh -c "cd $SOLR_HOME && tar xfz solr-78.8.1.tgz"
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this right? 78.8.1?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no. good catch.
thanks.

Copy link
Copy Markdown
Member

@pdurbin pdurbin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we update the following in pom.xml?

<dependency>
    <groupId>org.apache.solr</groupId>
    <artifactId>solr-solrj</artifactId>
    <version>7.7.2</version>
</dependency>

@djbrooke
Copy link
Copy Markdown
Contributor

djbrooke commented Mar 2, 2021

Thanks @pdurbin @scolapasta for the reviews (and @sekmiller for the PR). Is there anything left here or can we smash the approve button?

Copy link
Copy Markdown
Contributor

@scolapasta scolapasta left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK, after discussing at tech hours, we decided we're ok with the release notes, as is.

Copy link
Copy Markdown
Member

@pdurbin pdurbin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, I pulled this out of QA because I thought of something.

Should we delete conf/solr/7.7.2 and all of its contents? That's what we usually do. Otherwise we have two directories lying around (7.7.2 and 8.8.1) which could lead to confusion.

@pdurbin
Copy link
Copy Markdown
Member

pdurbin commented Mar 3, 2021

Should we delete conf/solr/7.7.2 and all of its contents?

Fixed in ed6f575. Moving back to QA.

@kcondon
Copy link
Copy Markdown
Contributor

kcondon commented Mar 5, 2021

Issues found so far:
[x] 1. add how to handle custom metadata blocks to release notes
Stephen add note for additional steps, pointing to metadata blocks section of manual and update script as in release notes from 5.1
2. make script complains about schema.xml

copying jhove schema file
/bin/cp ../../conf/jhove/jhoveConfig.xsd dvinstall
make: *** No rule to make target `../../conf/solr/7.7.2/schema.xml', needed by `dvinstall/schema.xml'.  Stop.
  1. solr versions need updating in docker and ansible scripts

@kcondon kcondon merged commit 43689e3 into develop Mar 5, 2021
@kcondon kcondon deleted the 7373-solr-upgrade branch March 5, 2021 19:12
@kcondon kcondon self-assigned this Mar 5, 2021
@djbrooke djbrooke added this to the 5.4 milestone Mar 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Upgrade to Solr 8+

6 participants