Skip to content
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

Index nodes are being downloaded more than necessary #114

Open
inetic opened this issue Apr 17, 2023 · 0 comments
Open

Index nodes are being downloaded more than necessary #114

inetic opened this issue Apr 17, 2023 · 0 comments

Comments

@inetic
Copy link
Member

inetic commented Apr 17, 2023

This happens when two snapshots are being downloaded concurrently. Imagine having two snapshots S1 and S2, where S1 happened before S2 (but I think a similar issue may happen if they are concurrent).

Say there is an inner node N that is shared among the two. Further assume that in both the block_presence field is the same (e.g. Full).

If the client finishes downloading S1 while it has not yet seen N as part of downloading S2. A database trigger deletes N from the received_inner_nodes table and it shall have to be re-downloaded.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant