nickva opened a new pull request, #5986:
URL: https://github.com/apache/couchdb/pull/5986

   Previously, as described in #5980 we didn't perform a thorough index cleanup 
when ddocs changed. We only cleaned up on nodes where the design docs were 
located. That was true for a n=3 db and an n=3, db but may not be true in 
general in a cluster.
   
   To fix the issue, run a small gen_server responsible performing cluster 
index cleanup. To avoid spawning Q*N jobs, deduplicate the requests by delaying 
for up to 30 seconds per clustered db. For cleanup reuse and call the already 
existing fabric index file cleanup machinery. That accomplishes two things:
   
    - Starts a quicker index file cleanup. Previously we only did this during 
smoosh compaction runs. The view files could linger for a while until 
compaction in smoosh would be triggered.
   
    - Cleaning search index files also stops indexes on their (Java) side, so 
index file clean-up does "double duty" so speak when it comes to index shut 
down.
   
   Fix https://github.com/apache/couchdb/issues/5980
   


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to