-
Notifications
You must be signed in to change notification settings - Fork 3
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
Query return empty list #3
Comments
Sorry I missed this! I'll look into that tomorrow. |
Oh I see. So at the moment the log "vanishes" as soon as all peers are offline (which happens every time the process terminates). Keeping history is non-trivial and afaik @haadcode's JS implementation suffers from the same problem. We've been talking about how to add that but did not come up with a nice solution yet. I really hope we can solve this soon, though. |
In the JS implementation, we save a simple json blob to a local file where the db name is the key and latest hash is the value. The value is saved (cached) on every message that comes through network (https://github.com/haadcode/orbit-db/blob/master/src/OrbitDB.js#L95) and on every local write (https://github.com/haadcode/orbit-db/blob/master/src/OrbitDB.js#L105). On initializing the database, we read that file https://github.com/haadcode/orbit-db/blob/master/src/OrbitDB.js#L75. Hope this helps! |
I wanted to compare with JS implementation, couldn't even
ahhh ok, I see! well thanks a lot! I was looking for a way to get missed events while a node was down. Look like it's not possible a this point! |
How the log gets "missed" events is that upon re-connecting (to other peer(s)) and receiving a new head from another peer, their log (of missing events) will be fetched and the data gets added to the the database. Ie. there shouldn't be missed events at all. Does that clarify it and answer your question?
Sorry to hear this. Would you mind opening a bug report in https://github.com/haadcode/orbit-db and any details as to what fails (npm install log would be very helpful)? |
I was thinking about something like this but didn't get around to it yet. I presume you do that in the orbit code, not in orbitdb? I would just add a |
https://github.com/haadcode/orbit-db-eventstore#orbit-db-eventstore
everything I tested with, including
ipfs/go-ipfs
is onmaster
.Nothing else was listening to that topic.
empty...
I only get result for query, when I query in the same process that produced events. And I only get the events that came from that process. not those from other producers.
Is the problem query logic itself? or is
EventStore
that is not persistent?The text was updated successfully, but these errors were encountered: