Open nolanlawson opened 10 years ago
despite the issue being old, just want to mention that the problem here is that this module executes asynchronous code in event handlers: https://github.com/pouchdb-community/pouchdb-all-dbs/blob/a90d0b16be187a37e15e6dd95f40f79d0cb96506/lib/index.js#L57-L105 This is what can cause race condition
I am 99% sure there is a race condition in this module. If you run
npm run test-pouchdb
in pouchdb-server enough times, you'll see stuff like this: