-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update and test with the latest leveldown #6551
Comments
I can confirm that the Unfortunately the "local" version of the test still doesn't pass (unlike the "http" version of the test, which is fine), as the new "iterator has ended" error that's thrown isn't being caught. |
There's an additional advantage to updating to @hubgit Is there anything I can do to help with this? It seems we broke something by fixing something else. |
@ralphtheninja this is the test that's still failing - I didn't manage to get to the bottom of how to catch the thrown error appropriately. |
@hubgit What is the command to run all the appropriate tests? Do I need some extra setup with couchdb etc? |
is an easier version |
@daleharvey Thanks! I'm in the middle of the bush right now and a huge party, but will hop on this when I'm back home :) |
Here's what I've been able to surmise so far - this applies only to the test for the The "Closing db does not cause a crash if changes cancelled" test calls There must be somewhere in PouchDB's changes/stream reading code to catch the "iterator has ended" error and handle it, but I haven't been able to work out where. |
@hubgit Aye, I've gathered as much myself, but have problems understanding the project structure, since all code is built out before on each |
I basically want to find out what's going on in |
The |
@ralphtheninja yup the pouchdb close is just a wrapper around levels https://github.com/pouchdb/pouchdb/blob/master/packages/node_modules/pouchdb-adapter-leveldb-core/src/index.js#L1158 |
* ⬆️ upgrade leveldown to 1.7.2 * ignore "iterator has ended" error
Issue
We've fixed the bug in
leveldown
that may cause a crash while closing db with open iterators: Level/leveldown#194 (comment)However, the
Assertion 'dummy_versions_.next_ == &dummy_versions_' failed
error can be from anywhere in the C++ land, so I'm not sure if PR Level/leveldown#368 solved the PouchDB case.It'll be great if you could try with the latest master of leveldown, and ping me if the test still fails.
Info
The text was updated successfully, but these errors were encountered: