mayya-sharipova opened a new pull request #635: Stop indexing activity on ddoc update URL: https://github.com/apache/couchdb/pull/635 Currently when ddoc is updated, couch_index and couch_index_updater processes corresponding to the previous version of ddoc will still exist until all indexing processing initiated by them is done. When ddoc of a big database is rapidly modified, this puts a lot of unnecessary strain on database. With this change, when ddoc is updated: * all couch_index processes for the previous version of ddoc will be shutdown * all linked to them couch_index_updater processes will die as well * all processes waiting for indexing activity to be finished (waiters for couch_index:get_status) will receive an immediate reply: ddoc_updated. Interactive user requests (view queries) will get response: {404, <<"not_found">>, <<"Design document was updated or deleted.">>} <!-- 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 When design document is updated, stop indexing activity for the previous version of the design doc. <!-- Please give a short brief for the pull request, what problem it solves or how it makes things better. --> ## Testing recommendations `make check apps=couch_mrview tests=ddoc_update_test_` <!-- Describe how we can test your changes. Does it provides any behaviour that the end users could notice? --> ## GitHub issue number <!-- If this is a significant change, please file a separate issue at: https://github.com/apache/couchdb/issues and include the number here and in commit message(s) using syntax like "Fixes #472" or "Fixes apache/couchdb#472". --> ## Related Pull Requests <!-- If your changes affects multiple components in different repositories please put links to those pull requests here. --> ## Checklist - [ ] Code is written and works correctly; - [ ] Changes are covered by tests; - [ ] Documentation reflects the changes; ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected]
With regards, Apache Git Services
