You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@couchdb.apache.org by "rnewson (via GitHub)" <gi...@apache.org> on 2026/02/11 11:35:37 UTC
Re: [PR] Reduce intra cluster conflicts [couchdb]
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:bar@127.1: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: notifications-unsubscribe@couchdb.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org