Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Stop indexing activity on ddoc update #635
Currently when ddoc is updated, couch_index and couch_index_updater processes
With this change, when ddoc is updated:
When design document is updated, stop couch_index processes for the previous version
GitHub issue number
Related Pull Requests
I'd like to try figuring out a fix to shutting down indexes that have multiple design documents associated since that is an advocated pattern for production apps.
The only other thing is that the new RPC messages were at first worrisome but thinking on it we'd only hit that for a design document updated during an upgrade so I'm fine leaving that window open (ie, crashing any old coordinators if someone does modify a design document during upgrade).
Awesome! This is so much better than the approach I was mulling over trying to store design doc ids in the individual indexer states. Just one minor tweak to the add_to_ets message handling and this will be good to go.