Open motin opened 5 years ago
Hi Fredrik, thanks for reporting. When you reset the DB, do you also reload the process/page that is replicating against those DBs, or are you saying that when resetting the DBs, the connection doesn't recover while the same process as before stays open?
My main concern is that it does not help reloading the process. It is less critical that it does not recover while the same process as before stays open.
Btw, the only workaround currently is to keep changing the database name, ie http://localhost:8080/localdevtest2/, http://localhost:8080/localdevtest3/ etc
Hi Fredrik. Can you provide some example client repo that replicates the issue so I can test this more extensively?
Sure, will do :)
Version: 2.0.0-beta1
During local testing I have had to reset the database sometimes. Sometimes this includes deleting and recreating the couchdb replication database (or else all the previous data would be replicated back into the reset local database). While my app has three collections that ought to be replicated upon replicate(), I have noticed that none or only a few of them gets replicated sometimes.
There is no log output informing about connectivity or replication issues, despite:
Steps to reproduce
git clone https://github.com/motin/cloudant-admin-cli
stack/start.sh
node index.js --create-db localdevtest
http://localhost:8080/localdevtest/
node index.js --reset-db localdevtest
http://localhost:8080/localdevtest/
Expected results
Working replication, or at least errors informing about that the replication could not initiate.
Actual results
No replication. No log output.
Notes
By using the following debug code...
I can confirm that none or only a few collections gets replicated:
If all is well, I'd see three collections being replicated:
I can't use
replicationState.error$
, since it requires the existence of a replicationState.