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

FindProviders regression #452

Closed
btc opened this issue Dec 15, 2014 · 11 comments
Closed

FindProviders regression #452

btc opened this issue Dec 15, 2014 · 11 comments
Labels
kind/bug A bug in existing code (including security flaws)

Comments

@btc
Copy link
Contributor

btc commented Dec 15, 2014

#440 introduces a bug in the DHT that causes the following test to fail:

  1. create network with one bootstrap peer
  2. connect a server. connect a client
  3. let server add file (client waits for signal to add file)
  4. let client cat file

Test fails with output:

client: dht: �FindProviders Query error: routing: not found �routing.go:206�

The failing test is shown here: https://build.protocol-dev.com/job/ipfs-dockertest/9/console

After reverting the changes, the tests pass. The passing test is shown here: https://build.protocol-dev.com/job/ipfs-dockertest/11/console

The branch with the reverted code is here: https://github.com/jbenet/go-ipfs/tree/revert/dht

@whyrusleeping @jbenet Plan of action?

@btc btc added the kind/bug A bug in existing code (including security flaws) label Dec 15, 2014
@whyrusleeping
Copy link
Member

Thats odd, the new find providers only extends the previous behaviour, before it would just send the peers we had locally in our routing table, now it will do that, then search for more.

Ill take a look at it now

@whyrusleeping
Copy link
Member

Do you have any reproductible test case that doesnt involve docker?

@whyrusleeping
Copy link
Member

ooooh, wait. I think i see it. We are treating an error on an individual request as an error on the whole RPC

@whyrusleeping
Copy link
Member

@maybebtc has this been resolved? Or are you still encountering the same issue?

@btc
Copy link
Contributor Author

btc commented Dec 16, 2014

I haven't been able to reproduce the issue. Tests are passing.

@whyrusleeping
Copy link
Member

well, if thats the case, ill close this one out.

@btc
Copy link
Contributor Author

btc commented Dec 18, 2014

@btc btc reopened this Dec 18, 2014
@whyrusleeping
Copy link
Member

If needed, I can shift my focus over to getting the DHT into a workable state.

@btc
Copy link
Contributor Author

btc commented Dec 23, 2014

@jbenet @whyrusleeping it's becoming increasingly likely that this is causing failures on #463

@jbenet
Copy link
Member

jbenet commented Dec 23, 2014

@maybebtc hm. probably :(

@jbenet
Copy link
Member

jbenet commented Jan 5, 2015

I think this is fixed. @briantigerchow confirm?

@jbenet jbenet closed this as completed Jan 5, 2015
ariescodescream pushed a commit to ariescodescream/go-ipfs that referenced this issue Oct 23, 2021
…com/ipfs/go-datastore-0.4.2

build(deps): bump github.com/ipfs/go-datastore from 0.4.1 to 0.4.2
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

3 participants