davisp commented on issue #559: 304 after GET-PUT-GET cycle on a _show
URL: https://github.com/apache/couchdb/issues/559#issuecomment-305884205
 
 
   A fix for this test case without deleting it would be to add a synchronous 
eviction during the request to modify a design doc (on the client side so we're 
not blocking couch_db_updater). This way the one client that requested the 
modification should not see the pre-modified ddoc in the cache if they make 
another request.
   
   Basically that'd be just a matter of making a ddoc_cache:evict_docs_sync or 
similar that uses gen_server:call/2 which would internally just use the same 
handle_cast code and reply with something arbitrary. And then we'd just add a 
couple lines in the clause at [1] that would look for any ddoc ids and do the 
eviction if they exist.
   
   [1] 
https://github.com/apache/couchdb/blob/master/src/couch/src/couch_db.erl#L1078
   
   Also someone should remove this extra eviction code that's still hanging 
around because its a duplication of the code around line 315.
   
   
https://github.com/apache/couchdb/blob/master/src/couch/src/couch_db_updater.erl#L902-L903
 
----------------------------------------------------------------
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

Reply via email to