adrienverge commented on issue #3356:
URL: https://github.com/apache/couchdb/issues/3356#issuecomment-775005078


   Hello @rnewson, thanks for your answer.
   
   > It also largely not relevant that the requests were initiated by the same 
coordinator node.
   
   Interesting and good to know! That's not an intuitive result. But that's 
indeed what I measured when testing reproduction scenarii.
   
   > One thing to note is that the change to the security object will enter the 
same queue as reads and writes to the relevant files, and those are processed 
in order of receipt.
   
   Interesting too! Is there a way to use this fact in order to garantee that a 
future call to `GET /base` (as user) will succeed (no random HTTP 403)? Without 
making the code "sleep" for an arbitrary amount of time?
   
   Also, is it a *bug* to get inconsistent results just after changing a base 
`_security` object?
   - If yes, is there something I can do? I could open a pull request to update 
the docs about this limitation?
   - If no, is there a "correct" way to get consistent results when querying a 
base after changing its `_security`? Because "waiting 1 second" doesn't sound 
satisfafying (performance loss after each database creation, in our case) nor 
reliable (in case of server load, delays are increased).


----------------------------------------------------------------
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.

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


Reply via email to