rnewson commented on PR #5371:
URL: https://github.com/apache/couchdb/pull/5371#issuecomment-3883868331

   The below script easily induces "spurious" conflicts on main branch (I got 
200 such docs after only 1000 iterations, but it's obviously timing-sensitive). 
On the PR branch I got zero.
   
   ```
   #!/bin/sh
   
   URL="http://foo:[email protected]:5984/db1";
   curl $URL -X DELETE || true
   curl $URL -X PUT
   
   N=1
   while true; do
       for I in {1..10}; do
           curl "$URL/DOC$N" -X PUT -d "{\"foo\":$I}" &
       done
       wait
       curl "$URL/DOC$N?conflicts=true" | jq '._conflicts'
       N=$((N+1))
   done
   ```


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