Skip to content

Instantly share code, notes, and snippets.

View ReeceStevens's full-sized avatar

Reece Stevens ReeceStevens

View GitHub Profile
'''
Use to test whether multiple concurrent replications can cause an error condition in CouchDB.
Usage example:
```
python test_parallel_replication.py --threads 10 --iterations 40 --single-source
```
'''
import logging
import logging
logging.basicConfig(level=logging.INFO)
log = logging.getLogger(__name__)
import argparse
import sys
import threading
import time
import couchdb