rnewson opened a new pull request, #5628: URL: https://github.com/apache/couchdb/pull/5628
<!-- Thank you for your contribution! Please file this form by replacing the Markdown comments with your text. If a section needs no action - remove it. Also remember, that CouchDB uses the Review-Then-Commit (RTC) model of code collaboration. Positive feedback is represented +1 from committers and negative is a -1. The -1 also means veto, and needs to be addressed to proceed. Once there are no objections, the PR can be merged by a CouchDB committer. See: http://couchdb.apache.org/bylaws.html#decisions for more info. --> ## Overview Upgrades Nouveau to Lucene 10. Existing indexes can still be queried and updated. New indexes will be built with Lucene 10 (couchdb will auto-inject the version information into the design document). A couch_scanner plugin will build Lucene 10 versions of all current indexes (sequentially) and update the design document on successful completion, making the upgrade automatic. TODO: 1) Needs additional tests 2) documentation on enabling the scanner plugin. 3) couch_scanner not currently happy with long-running ddoc/3 callback functions (it blocks for the index to build, which could be a long time). Possible remedies for 3 could be making nouveau_index_upgrader a gen_server and just doing the all_docs scan ourselves. Will discuss with Nick this week. Noting also that couch_scanner does not use from_json_obj and thus did not set #doc.revs. I've added that here but is perhaps a sign that couch_scanner should be read-only. ## Testing recommendations TBD ## Related Issues or Pull Requests N/A ## Checklist - [x] Code is written and works correctly - [ ] Changes are covered by tests - [ ] Any new configurable parameters are documented in `rel/overlay/etc/default.ini` - [ ] Documentation changes were made in the `src/docs` folder - [ ] Documentation changes were backported (separated PR) to affected branches -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: notifications-unsubscr...@couchdb.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org