Skip to content

Provide order: should provide roots asap #1674

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

Closed
larsks opened this issue Sep 10, 2015 · 3 comments
Closed

Provide order: should provide roots asap #1674

larsks opened this issue Sep 10, 2015 · 3 comments
Labels
kind/bug A bug in existing code (including security flaws)

Comments

@larsks
Copy link

larsks commented Sep 10, 2015

I'm running 0.3.8-dev locally under OS X and on a remote server under Linux (x86_64).

I've ipfs add -r'd a local directory. While I can access the resulting objects locally, they are not visible from either my remote ipvs instance or using gateway.ipfs.io.

Locally, I appear to have 59 available peers in the output of ipvs swarm peers, which would suggest to me adequate connectivity but I'm not to ipfs so maybe it doesn't really suggest that.

I've tried the reverse (adding something on the remote server and then trying to access it locally), which also fails.

@larsks
Copy link
Author

larsks commented Sep 10, 2015

I see, there's just a looooong delay for new objects to seed across the network, I guess.

@larsks larsks closed this as completed Sep 10, 2015
@jbenet
Copy link
Member

jbenet commented Sep 10, 2015

@larsks actually this is a design bug, so i'll reopen this issue. the problem is that currently, we start "providing" as we add content, which means that the last object to be provided is the root. and for huge directories, it's the first object you want seeded.

what we should do is:

  • continue providing asap
  • prioritize providing "non-leaf" nodes, starting from the root.

desired action: as soon as an add finishes, the root should be provided, followed by the first children, etc.

@jbenet jbenet reopened this Sep 10, 2015
@jbenet jbenet changed the title Objects added to ipfs not available anywhere other than locally? Provide order: should provide roots asap Sep 10, 2015
@em-ly em-ly added the kind/bug A bug in existing code (including security flaws) label Aug 25, 2016
@Stebalien
Copy link
Member

We now do this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug A bug in existing code (including security flaws)
Projects
None yet
Development

No branches or pull requests

4 participants