indexeddb adapter can break when opened in multiple tabs
- Dominant language
- JavaScript
- Stars
- 17.6k
- Forks
- 1.5k
- PR merge metrics
- No merged PRs in 30d
Description
### Issue
We have an application using pouchDB to make offline functionality possible, in live replication with a remote CouchDB cluster.
We recently moved from idb adapter to indexeddb adapter in order to perform better with native IdB indexes.
The app performance are now ok, but we have some cases where the end users experiment occasionally the following error:
Database has a global failure
launched by the new indexededb adapter in the idb.onabort callback.
When this happens, the download replication stream crashes, instead the upload one and the app local data browsing still work.
In all cases we had to start a fresh download of all local data from server to overcome this issue
Any ideas of possible causes or what to check?
Thanks
### Info
- Environment: (Node.js/browser/hybrid app.)
- Platform: (Electron app)
- Adapter: (IndexedDB)
- Server: (CouchDB)
Contributor guide
Assessment
This issue has not been assessed yet.