Comments (7)
have you thought about this problem before and have any ideas
only so far as to think that we should solve it : )
should I just go for it?
go for it. Let me know if I can help with anything.
from holochain.
I found the source of this problem:
holochain/crates/kitsune_p2p/kitsune_p2p/src/spawn/actor/space.rs
Lines 941 to 942 in e3fb507
When finding local agents to route to, we're filtering by whether they hold the basis. Obviously this will be a problem for zero arcs, but also for non-full arcs, as you mention.
Ideally we can know if the basis of what we're asking for is something we authored, and then include the authoring agent in the list of local agents even if their arc doesn't cover it. @neonphog have you thought about this problem before and have any ideas, or should I just go for it?
from holochain.
@maackle this is sounding like quite a big thing to solve, do you think thatβs true?
from holochain.
I've got a solution mostly worked out for this, but hit a slight snag.
I added a new Kitsune->Host call, get_local_authors
, for any KitsuneBasis, so the rpc_multi call can find out if any local agents are holding that basis and they can be mixed in with the other agents whose arc is covering the basis. The snag is that in Holochain, a "basis" is a AnyDhtHash
which can have a number of multihash prefixes, but in Kitsune, a KitsuneBasis
erases the hash type, so there's no way to go from KitsuneBasis
back to AnyDhtHash
to query the database.
One solution is to just query for every possible type of basis, which is only 2 now but may be 3 when we add AgentPubKey as a legit basis of its own (rather than via EntryHash), but this needlessly slows down the query a bit.
Another would be to just store the main 32 bytes of the basis in the DB, but that requires a database migration. @neonphog thoughts?
from holochain.
@maackle - I'm not sure I understand why the basis is involved. I'm pretty sure it calls into all local agents always here - triggering, eventually a handler call here.
What I don't understand is why that database call is not returning results that were authored by this node...
from holochain.
@neonphog it's because of the line I mentioned, but here it is in context:
holochain/crates/kitsune_p2p/kitsune_p2p/src/spawn/actor/space.rs
Lines 930 to 951 in e3fb507
The local_joined_agents
in handle_rpc_multi_as_single
is not actually all local joined agents, but only the local agents covering the basis. That generally excludes actual authors sometimes. So my idea was to mix back in the authors of that basis if they've been filtered out.
from holochain.
@maackle - ah, gottcha. Or, perhaps it would be fine to just not filter the local agents. It should be relatively inexpensive to make a local call like that compared to a remote network call.
from holochain.
Related Issues (20)
- The release automation produces TOML which is not correctly formatted
- A bad return value from a callback crashes the conductor HOT 2
- [Release automation] Fix toml formatting HOT 1
- Release automation dep `crate-util` requires newer Rust version 1.76
- Simplification of the release process HOT 1
- Review of Key Manager Browser Extension
- Review of Launcher with Key Management
- (Must have) Run the HoloFuel sweettest test
- Atomic Holonix updates HOT 1
- (Must have) Manual testing, using a happ that we know is reasonably reliable
- (Must have) Leave a conductor running for a longer period of time
- (Nice to have) Automated (or at least semi) testing, maybe with HoloFuel?
- (Medium) Wind Tunnel simple baseline
- [BUG] Unable to open Database file on Windows 10
- Holochain dependency, dependencies updates
- [Workflow] Remove integration workflow
- [Integrity] Write helper to collectively return missing dependencies from must_get calls
- [ENHANCEMENT] Move cached wasms to dedicated folder
- [BUG] when a node with "empty" gossip arc clamping creates a link and then tries to delete it, it gets a validation failure HOT 3
- Deferred memproof provisioning HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from holochain.